diff --git a/modules/services/x11/desktop-managers/kde4.nix b/modules/services/x11/desktop-managers/kde4.nix index ce3966fb28a..6baa17be9a1 100644 --- a/modules/services/x11/desktop-managers/kde4.nix +++ b/modules/services/x11/desktop-managers/kde4.nix @@ -140,10 +140,10 @@ in target = "X11/xkb"; }; - # Enable required DBus services. + # Enable helpful DBus services. services.hal = mkIf (!isKDE47) { enable = true; }; services.udisks = mkIf isKDE47 { enable = true; }; - services.upower = mkIf isKDE47 { enable = true; }; + services.upower = mkIf (isKDE47 && config.powerManagement.enable) { enable = true; }; }; diff --git a/modules/services/x11/desktop-managers/xfce.nix b/modules/services/x11/desktop-managers/xfce.nix index 89d4b1fd4dd..fa1e4044b14 100644 --- a/modules/services/x11/desktop-managers/xfce.nix +++ b/modules/services/x11/desktop-managers/xfce.nix @@ -80,7 +80,10 @@ in environment.pathsToLink = [ "/share/xfce4" "/share/themes" "/share/mime" "/share/desktop-directories" ]; + # Enable helpful DBus services. services.hal = mkIf (!isXfce48) { enable = true; }; + services.udisks = mkIf isXfce48 { enable = true; }; + services.upower = mkIf (isXfce48 && config.powerManagement.enable) { enable = true; }; };