Add option to disable displayManager with desktopManager
This commit is contained in:
parent
fe7d6ced06
commit
3ae0a6f1b2
2 changed files with 14 additions and 2 deletions
|
@ -9,13 +9,19 @@ in
|
||||||
enable = mkEnableOption ''
|
enable = mkEnableOption ''
|
||||||
Enable gnome with my custom configurations
|
Enable gnome with my custom configurations
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
enableGdm = mkOption {
|
||||||
|
type = types.bool;
|
||||||
|
description = "Enable gdm with custom gnome";
|
||||||
|
default = true;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable {
|
||||||
# Enable the X11 windowing system.
|
# Enable the X11 windowing system.
|
||||||
services.xserver.enable = true;
|
services.xserver.enable = true;
|
||||||
|
|
||||||
# Enable the Gnome Desktop Environment.
|
# Enable the Gnome Desktop Environment.
|
||||||
services.xserver.displayManager.gdm.enable = true;
|
services.xserver.displayManager.gdm.enable = cfg.enableGdm;
|
||||||
|
|
||||||
# Enable the GNOME shell.
|
# Enable the GNOME shell.
|
||||||
services.xserver.desktopManager.gnome.enable = true;
|
services.xserver.desktopManager.gnome.enable = true;
|
||||||
|
|
|
@ -17,6 +17,12 @@ in
|
||||||
enableWallpaperEngine = mkEnableOption ''
|
enableWallpaperEngine = mkEnableOption ''
|
||||||
Enable wallpaper engine plugin for plasma
|
Enable wallpaper engine plugin for plasma
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
enableSddm = mkOption {
|
||||||
|
type = types.bool;
|
||||||
|
description = "Enable sddm with custom plasma";
|
||||||
|
default = true;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable {
|
||||||
# Enable the X11 windowing system.
|
# Enable the X11 windowing system.
|
||||||
|
@ -24,7 +30,7 @@ in
|
||||||
|
|
||||||
# Enable the KDE Plasma Desktop Environment.
|
# Enable the KDE Plasma Desktop Environment.
|
||||||
services.displayManager = {
|
services.displayManager = {
|
||||||
sddm.enable = true;
|
sddm.enable = cfg.enableSddm;
|
||||||
defaultSession = "plasma";
|
defaultSession = "plasma";
|
||||||
};
|
};
|
||||||
services.desktopManager.plasma6.enable = true;
|
services.desktopManager.plasma6.enable = true;
|
||||||
|
|
Loading…
Reference in a new issue