forked from auxolotl/templates
31 lines
527 B
Nix
31 lines
527 B
Nix
# Enables the XFCE desktop environment.
|
|
{
|
|
pkgs,
|
|
config,
|
|
lib,
|
|
...
|
|
}:
|
|
let
|
|
cfg = config.aux.ui.desktops.xfce;
|
|
in
|
|
{
|
|
options = {
|
|
aux.ui.desktops.xfce.enable = lib.mkEnableOption (
|
|
lib.mdDoc "Enables the XFCE desktop environment."
|
|
);
|
|
};
|
|
|
|
config = lib.mkIf cfg.enable {
|
|
aux.ui.desktops.enable = true;
|
|
|
|
services.xserver = {
|
|
enable = true;
|
|
desktopManager = {
|
|
xterm.enable = false;
|
|
xfce.enable = true;
|
|
};
|
|
displayManager.defaultSession = "xfce";
|
|
};
|
|
};
|
|
}
|