2024-06-24 15:38:28 +00:00
|
|
|
# Enables the Budgie desktop environment.
|
2024-12-06 16:46:10 +00:00
|
|
|
{
|
|
|
|
config,
|
|
|
|
lib,
|
|
|
|
namespace,
|
|
|
|
...
|
|
|
|
}:
|
2024-06-24 15:38:28 +00:00
|
|
|
let
|
2024-12-06 16:46:10 +00:00
|
|
|
cfg = config.${namespace}.ui.desktops.budgie;
|
2024-06-24 15:38:28 +00:00
|
|
|
in
|
|
|
|
{
|
|
|
|
options = {
|
2024-12-06 16:46:10 +00:00
|
|
|
${namespace}.ui.desktops.budgie.enable = lib.mkEnableOption "Enables the Budgie desktop environment.";
|
2024-06-24 15:38:28 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
config = lib.mkIf cfg.enable {
|
2024-12-06 16:46:10 +00:00
|
|
|
${namespace}.ui.desktops.enable = true;
|
2024-06-24 15:38:28 +00:00
|
|
|
|
|
|
|
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;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|