modules: sddm is no longer the config wide default

Make room for a GDM option as well (SDDM does not start on my
NVIDIA+Wayland config)
This commit is contained in:
Antoine Martin 2025-12-22 18:48:00 +01:00
parent c3100e4cfb
commit b8c954350c
5 changed files with 26 additions and 2 deletions

23
modules/gdm.nix Normal file
View file

@ -0,0 +1,23 @@
{
config,
lib,
pkgs,
...
}: let
inherit
(lib)
mkEnableOption
mkIf
;
cfg = config.my.displayManager.gdm;
in {
options.my.displayManager.gdm.enable = mkEnableOption "GDM setup";
config = mkIf cfg.enable {
services.displayManager.gdm = {
enable = true;
wayland = true;
};
};
}