Use boolean to enable/disable sway and gnome
This commit is contained in:
parent
c1d55914dd
commit
cad6f04d73
5 changed files with 13 additions and 10 deletions
|
|
@ -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";
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue