1
0
Fork 0
nix-configuration/modules/nixos/ui/desktops/xfce/default.nix

29 lines
535 B
Nix
Raw Permalink Normal View History

# Enables the XFCE desktop environment.
2024-12-06 16:46:10 +00:00
{
config,
lib,
namespace,
...
}:
let
2024-12-06 16:46:10 +00:00
cfg = config.${namespace}.ui.desktops.xfce;
in
{
options = {
2024-12-06 16:46:10 +00:00
${namespace}.ui.desktops.xfce.enable = lib.mkEnableOption "Enables the XFCE desktop environment.";
};
config = lib.mkIf cfg.enable {
2024-12-06 16:46:10 +00:00
${namespace}.ui.desktops.enable = true;
services.xserver = {
enable = true;
desktopManager = {
xterm.enable = false;
xfce.enable = true;
};
displayManager.defaultSession = "xfce";
};
};
}