diff options
author | K900 <me@0upti.me> | 2022-09-15 21:48:21 +0300 |
---|---|---|
committer | K900 <me@0upti.me> | 2022-09-24 15:10:14 +0300 |
commit | 640aa41dfbde69113dfb7428c7ccbfd05862e00e (patch) | |
tree | 50dce2202a83b202c69ca93e96d1a65ff47590ec /nixos | |
parent | 9569998606020f3dd3120fdac2149b5cafca1687 (diff) |
nixos/plasma5: only generate kwinrc/kdeglobals if we have anything to generate
Diffstat (limited to 'nixos')
-rw-r--r-- | nixos/modules/services/x11/desktop-managers/plasma5.nix | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/nixos/modules/services/x11/desktop-managers/plasma5.nix b/nixos/modules/services/x11/desktop-managers/plasma5.nix index dc8b24dc3829f..3e04f6d0e6bb2 100644 --- a/nixos/modules/services/x11/desktop-managers/plasma5.nix +++ b/nixos/modules/services/x11/desktop-managers/plasma5.nix @@ -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 |