Make room for a GDM option as well (SDDM does not start on my NVIDIA+Wayland config)
23 lines
330 B
Nix
23 lines
330 B
Nix
{
|
|
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;
|
|
};
|
|
};
|
|
}
|