forked from auxolotl/templates
34 lines
885 B
Nix
34 lines
885 B
Nix
# Enables the Budgie desktop environment.
|
|
{
|
|
pkgs,
|
|
config,
|
|
lib,
|
|
...
|
|
}:
|
|
let
|
|
cfg = config.aux.system.ui.desktops.budgie;
|
|
in
|
|
{
|
|
options = {
|
|
aux.system.ui.desktops.budgie.enable = lib.mkEnableOption (
|
|
lib.mdDoc "Enables the Budgie desktop environment."
|
|
);
|
|
};
|
|
|
|
config = lib.mkIf cfg.enable {
|
|
aux.system.ui.desktops = {
|
|
enable = true;
|
|
displayManager = lib.mkOptionDefault "lightdm";
|
|
};
|
|
|
|
services.xserver = {
|
|
enable = true;
|
|
desktopManager.budgie.enable =
|
|
if config.services.xserver.desktopManager.gnome.enable then
|
|
builtins.abort "Budgie and Gnome cannot be enabled at the same time due to a bug. For details and a possible workaround, please see https://discourse.nixos.org/t/help-i-cant-have-pantheon-gnome-and-plasma-installed-on-my-system-at-the-same-time/47346"
|
|
else
|
|
true;
|
|
};
|
|
};
|
|
}
|