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