nixos/plasma5: only generate kwinrc/kdeglobals if we have anything to generate

This commit is contained in:
K900 2022-09-15 21:48:21 +03:00
parent 9569998606
commit 640aa41dfb

View file

@ -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