summaryrefslogtreecommitdiff
path: root/hosts/common/desktop/plasma.nix
diff options
context:
space:
mode:
authorseth <[email protected]>2023-01-28 08:00:08 -0500
committerseth <[email protected]>2023-01-28 08:00:08 -0500
commit17323f963d2c576cba5f065837e5b86b79e950db (patch)
tree81ee24b276d9861806e0100953c6b06b8ceffd8f /hosts/common/desktop/plasma.nix
parent53b2dc1ce7ea995fb3a1a11864128127d929666f (diff)
always import hosts/common/desktop + fix gnome/plasma
Diffstat (limited to 'hosts/common/desktop/plasma.nix')
-rw-r--r--hosts/common/desktop/plasma.nix36
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 {}