Add option to disable displayManager with desktopManager

This commit is contained in:
Florian RICHER 2024-11-09 19:56:09 +01:00
parent fe7d6ced06
commit 3ae0a6f1b2
Signed by: florian.richer
GPG key ID: C73D37CBED7BFC77
2 changed files with 14 additions and 2 deletions

View file

@ -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;

View file

@ -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;