nixos/plasma5: only generate kwinrc/kdeglobals if we have anything to generate
This commit is contained in:
parent
9569998606
commit
640aa41dfb
1 changed files with 7 additions and 4 deletions
|
@ -444,11 +444,14 @@ in
|
|||
services.xserver.displayManager.setupCommands = startplasma;
|
||||
|
||||
nixpkgs.config.firefox.enablePlasmaBrowserIntegration = true;
|
||||
})
|
||||
|
||||
environment.etc = {
|
||||
"xdg/kwinrc".text = lib.generators.toINI {} cfg.kwinrc;
|
||||
"xdg/kdeglobals".text = lib.generators.toINI {} cfg.kdeglobals;
|
||||
};
|
||||
(mkIf (cfg.kwinrc != {}) {
|
||||
environment.etc."xdg/kwinrc".text = lib.generators.toINI {} cfg.kwinrc;
|
||||
})
|
||||
|
||||
(mkIf (cfg.kdeglobals != {}) {
|
||||
environment.etc."xdg/kdeglobals".text = lib.generators.toINI {} cfg.kdeglobals;
|
||||
})
|
||||
|
||||
# Plasma Desktop
|
||||
|
|
Loading…
Reference in a new issue