templates/system/modules/ui/desktops/xfce.nix
Andre 54f4de49f4
Some checks are pending
Code Check / Run nixfmt and statix (push) Waiting to run
chore: Change template namespace to 'aux.system'
2024-06-16 12:53:16 -04:00

31 lines
548 B
Nix

# Enables the XFCE desktop environment.
{
pkgs,
config,
lib,
...
}:
let
cfg = config.aux.system.ui.desktops.xfce;
in
{
options = {
aux.system.ui.desktops.xfce.enable = lib.mkEnableOption (
lib.mdDoc "Enables the XFCE desktop environment."
);
};
config = lib.mkIf cfg.enable {
aux.system.ui.desktops.enable = true;
services.xserver = {
enable = true;
desktopManager = {
xterm.enable = false;
xfce.enable = true;
};
displayManager.defaultSession = "xfce";
};
};
}