Splits mtxyz.graphical.desktop option across files.

This commit is contained in:
Bailey 2024-04-23 20:17:18 -04:00
parent e3fb5c7ad8
commit ffd9eda436
3 changed files with 13 additions and 1 deletions

View file

@ -12,7 +12,7 @@ in
options.mtxyz.graphical = with lib; {
desktop = mkOption {
description = "Graphical desktop environment to use";
type = with types; nullOr (enum ["kde" "gnome" ]);
type = with types; nullOr (enum [ ]);
default = null;
};
};

View file

@ -5,6 +5,12 @@
...
}:
{
options.mtxyz.graphical = with lib; {
desktop = mkOption {
type = with types; nullOr (enum [ "gnome" ]);
};
};
config = lib.mkIf (config.mtxyz.graphical.desktop == "gnome") {
services.xserver = {
displayManager.gdm.enable = true;

View file

@ -4,6 +4,12 @@
...
}:
{
options.mtxyz.graphical = with lib; {
desktop = mkOption {
type = with types; nullOr (enum [ "kde" ]);
};
};
config = lib.mkIf (config.mtxyz.graphical.desktop == "kde") {
services = {
xserver.displayManager.sddm.enable = true;