29 lines
535 B
Nix
29 lines
535 B
Nix
# Enables the XFCE desktop environment.
|
|
{
|
|
config,
|
|
lib,
|
|
namespace,
|
|
...
|
|
}:
|
|
let
|
|
cfg = config.${namespace}.ui.desktops.xfce;
|
|
in
|
|
{
|
|
options = {
|
|
${namespace}.ui.desktops.xfce.enable = lib.mkEnableOption "Enables the XFCE desktop environment.";
|
|
};
|
|
|
|
config = lib.mkIf cfg.enable {
|
|
${namespace}.ui.desktops.enable = true;
|
|
|
|
services.xserver = {
|
|
enable = true;
|
|
desktopManager = {
|
|
xterm.enable = false;
|
|
xfce.enable = true;
|
|
};
|
|
displayManager.defaultSession = "xfce";
|
|
};
|
|
};
|
|
}
|