15 lines
214 B
Nix
15 lines
214 B
Nix
{
|
|
lib,
|
|
config,
|
|
...
|
|
}: let
|
|
cfg = config.desktop.dm;
|
|
in {
|
|
config = lib.mkIf (cfg.name == "gdm") {
|
|
services.xserver.displayManager.gdm = {
|
|
enable = true;
|
|
wayland = cfg.wayland;
|
|
};
|
|
};
|
|
}
|