2024-09-08 19:22:14 -05:00
|
|
|
{
|
2024-09-12 20:50:53 -05:00
|
|
|
config,
|
|
|
|
lib,
|
|
|
|
...
|
|
|
|
}:
|
2024-12-24 09:26:54 -05:00
|
|
|
with lib; let
|
|
|
|
cfg = config.custom.desktops;
|
|
|
|
in {
|
|
|
|
options.custom.desktops = {
|
|
|
|
enable = mkOption {default = config.custom.minimal;};
|
|
|
|
};
|
|
|
|
|
|
|
|
config = mkIf cfg.enable {
|
|
|
|
custom.desktops = {
|
2024-12-30 10:09:03 -06:00
|
|
|
gnome.enable = config.custom.desktop == "gnome";
|
|
|
|
hyprland.enable = config.custom.desktop == "hyprland";
|
|
|
|
kde.enable = config.custom.desktop == "kde";
|
|
|
|
niri.enable = config.custom.desktop == "niri";
|
|
|
|
sway.enable = config.custom.desktop == "sway";
|
2024-12-24 09:26:54 -05:00
|
|
|
};
|
2024-11-06 11:52:43 -06:00
|
|
|
};
|
2024-09-08 19:22:14 -05:00
|
|
|
}
|