1
1
Fork 0
nixos/options/custom/desktops/default.nix
2025-03-29 18:11:15 -05:00

23 lines
575 B
Nix

{
config,
lib,
...
}:
with lib; let
cfg = config.custom.desktops;
in {
options.custom.desktops = {
enable = mkOption {default = isString config.custom.desktop;};
};
config = mkIf cfg.enable {
custom.desktops = {
gnome.enable = config.custom.desktop == "gnome";
hyprland.enable = config.custom.desktop == "hyprland";
kde.enable = config.custom.desktop == "kde";
kodi.enable = config.custom.desktop == "kodi";
niri.enable = config.custom.desktop == "niri";
sway.enable = config.custom.desktop == "sway";
};
};
}