diff options
| author | seth <[email protected]> | 2023-01-28 08:00:08 -0500 |
|---|---|---|
| committer | seth <[email protected]> | 2023-01-28 08:00:08 -0500 |
| commit | 17323f963d2c576cba5f065837e5b86b79e950db (patch) | |
| tree | 81ee24b276d9861806e0100953c6b06b8ceffd8f /hosts/common/desktop/plasma.nix | |
| parent | 53b2dc1ce7ea995fb3a1a11864128127d929666f (diff) | |
always import hosts/common/desktop + fix gnome/plasma
Diffstat (limited to 'hosts/common/desktop/plasma.nix')
| -rw-r--r-- | hosts/common/desktop/plasma.nix | 36 |
1 files changed, 19 insertions, 17 deletions
diff --git a/hosts/common/desktop/plasma.nix b/hosts/common/desktop/plasma.nix index f06fe23..952684f 100644 --- a/hosts/common/desktop/plasma.nix +++ b/hosts/common/desktop/plasma.nix @@ -2,21 +2,23 @@ config, pkgs, ... -}: -if config.sys.desktop == "plasma" -then { - services.xserver = { - displayManager.sddm.enable = true; - desktopManager.plasma5 = { - enable = true; - excludePackages = with pkgs.libsForQt5; [ - elisa - khelpcenter - oxygen - plasma-browser-integration - print-manager - ]; - }; - }; +}: let + xserverConfig = + if config.sys.desktop == "plasma" + then { + displayManager.sddm.enable = true; + desktopManager.plasma5 = { + enable = true; + excludePackages = with pkgs.libsForQt5; [ + elisa + khelpcenter + oxygen + plasma-browser-integration + print-manager + ]; + }; + } + else {}; +in { + services.xserver = xserverConfig; } -else {} |
