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:
parent
c3100e4cfb
commit
b8c954350c
5 changed files with 26 additions and 2 deletions
23
modules/gdm.nix
Normal file
23
modules/gdm.nix
Normal 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;
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue