mirror of
https://github.com/nix-community/home-manager
synced 2024-12-18 07:49:48 +01:00
pueue: always write configuration file
Pueue requires the configuration file to contain a `shared` entry. We therefore unconditionally add it as `shared: {}`. Fixes #4295
This commit is contained in:
parent
477176502a
commit
950673cec7
1 changed files with 3 additions and 3 deletions
|
@ -6,7 +6,8 @@ let
|
||||||
|
|
||||||
cfg = config.services.pueue;
|
cfg = config.services.pueue;
|
||||||
yamlFormat = pkgs.formats.yaml { };
|
yamlFormat = pkgs.formats.yaml { };
|
||||||
configFile = yamlFormat.generate "pueue.yaml" cfg.settings;
|
configFile =
|
||||||
|
yamlFormat.generate "pueue.yaml" ({ shared = { }; } // cfg.settings);
|
||||||
|
|
||||||
in {
|
in {
|
||||||
meta.maintainers = [ maintainers.AndersonTorres ];
|
meta.maintainers = [ maintainers.AndersonTorres ];
|
||||||
|
@ -39,8 +40,7 @@ in {
|
||||||
|
|
||||||
home.packages = [ cfg.package ];
|
home.packages = [ cfg.package ];
|
||||||
|
|
||||||
xdg.configFile =
|
xdg.configFile."pueue/pueue.yml".source = configFile;
|
||||||
mkIf (cfg.settings != { }) { "pueue/pueue.yml".source = configFile; };
|
|
||||||
|
|
||||||
systemd.user = {
|
systemd.user = {
|
||||||
services.pueued = {
|
services.pueued = {
|
||||||
|
|
Loading…
Reference in a new issue