1
1
Fork 0
nixos/options/custom/desktops/default.nix
2024-12-24 09:26:54 -05:00

23 lines
507 B
Nix

{
config,
lib,
...
}:
with lib; let
cfg = config.custom.desktops;
in {
options.custom.desktops = {
enable = mkOption {default = config.custom.minimal;};
desktop = mkOption {default = "niri";};
};
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";
};
};
}