xfce: add screenLock option

screenLock option is needed to provide at least one application for
xflock4 to lock the screen

Changed files
+7
nixos
modules
services
x11
desktop-managers
+7
nixos/modules/services/x11/desktop-managers/xfce.nix
···
default = true;
description = "Enable the XFWM (default) window manager.";
};
+
+
screenLock = mkOption {
+
type = types.enum [ "xscreensaver" "xlockmore" "slock" ];
+
default = "xlockmore";
+
description = "Application used by XFCE to lock the screen.";
+
};
};
};
···
pkgs.tango-icon-theme
pkgs.shared_mime_info
pkgs.which # Needed by the xfce's xinitrc script.
+
pkgs."${cfg.screenLock}"
pkgs.xfce.exo
pkgs.xfce.gtk_xfce_engine
pkgs.xfce.mousepad