Use boolean to enable/disable sway and gnome

This commit is contained in:
Jakob Lechner 2025-07-30 23:41:40 +02:00
parent c1d55914dd
commit cad6f04d73
5 changed files with 13 additions and 10 deletions

View file

@ -4,11 +4,8 @@
options.jalr = {
gui = {
enable = lib.mkEnableOption "GUI";
desktop = lib.mkOption {
type = lib.types.nullOr (lib.types.enum [ "sway" "gnome" ]);
default = "sway";
description = "Desktop environment to install";
};
sway.enable = lib.mkEnableOption "sway";
gnome.enable = lib.mkEnableOption "gnome";
};
workstation.enable = lib.mkEnableOption "Workstation";
};