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

32 lines
662 B
Nix
Raw Normal View History

# Enables the Budgie desktop environment.
2024-12-06 18:04:47 +00:00
{
config,
lib,
namespace,
...
}:
let
2024-12-06 18:04:47 +00:00
cfg = config.${namespace}.ui.desktops.budgie;
in
{
options = {
${namespace}.ui.desktops.budgie.enable =
lib.mkEnableOption "Enables the Budgie desktop environment.";
};
config = lib.mkIf cfg.enable {
2024-12-06 18:04:47 +00:00
${namespace}.ui.desktops.enable = true;
services.xserver = {
enable = true;
desktopManager.budgie.enable = true;
displayManager.lightdm.enable = lib.mkIf (
!(
config.services.xserver.displayManager.gdm.enable
|| config.services.xserver.displayManager.sddm.enable
)
) true;
};
};
}