1
1
Fork 0
nixos/options/custom/desktops/default.nix
Myned 48e84a857d
gnome: add minimal option with core-os-services
Signed-off-by: Myned <dev@bjork.tech>
2024-12-26 19:06:11 -05:00

29 lines
584 B
Nix

{
config,
lib,
...
}:
with lib; let
cfg = config.custom.desktops;
in {
options.custom.desktops = {
enable = mkOption {default = config.custom.minimal;};
desktop = mkOption {
default =
if config.custom.full
then "niri"
else "gnome";
};
};
config = mkIf cfg.enable {
custom.desktops = {
gnome.enable = cfg.desktop == "gnome";
hyprland.enable = cfg.desktop == "hyprland";
kde.enable = cfg.desktop == "kde";
niri.enable = cfg.desktop == "niri";
sway.enable = cfg.desktop == "sway";
};
};
}