2024-09-09 00:22:14 +00:00
|
|
|
{
|
2024-09-13 01:50:53 +00:00
|
|
|
config,
|
|
|
|
lib,
|
|
|
|
...
|
|
|
|
}:
|
2024-12-24 14:26:54 +00:00
|
|
|
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";
|
|
|
|
};
|
2024-11-06 17:52:43 +00:00
|
|
|
};
|
2024-09-09 00:22:14 +00:00
|
|
|
}
|