diff options
Diffstat (limited to 'nixos/modules/services/x11/desktop-managers/xfce.nix')
-rw-r--r-- | nixos/modules/services/x11/desktop-managers/xfce.nix | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/nixos/modules/services/x11/desktop-managers/xfce.nix b/nixos/modules/services/x11/desktop-managers/xfce.nix index 0bb5c1268cac2..88b21e59aaa6b 100644 --- a/nixos/modules/services/x11/desktop-managers/xfce.nix +++ b/nixos/modules/services/x11/desktop-managers/xfce.nix @@ -66,6 +66,12 @@ in default = true; description = "Enable the XFWM (default) window manager."; }; + + enableScreensaver = mkOption { + type = types.bool; + default = true; + description = "Enable the XFCE screensaver."; + }; }; }; @@ -99,7 +105,6 @@ in ristretto xfce4-appfinder xfce4-notifyd - xfce4-screensaver xfce4-screenshooter xfce4-session xfce4-settings @@ -123,7 +128,7 @@ in ] ++ optionals (!cfg.noDesktop) [ xfce4-panel xfdesktop - ]; + ] ++ optional cfg.enableScreensaver xfce4-screensaver; environment.pathsToLink = [ "/share/xfce4" @@ -169,6 +174,6 @@ in xfce4-notifyd ]; - security.pam.services.xfce4-screensaver.unixAuth = true; + security.pam.services.xfce4-screensaver.unixAuth = cfg.enableScreensaver; }; } |