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