Splits mtxyz.graphical.desktop option across files.
This commit is contained in:
parent
e3fb5c7ad8
commit
ffd9eda436
|
@ -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;
|
||||
};
|
||||
};
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue