modularize desktop components
This commit is contained in:
12
modules/desktop/dm/gdm.nix
Normal file
12
modules/desktop/dm/gdm.nix
Normal file
@@ -0,0 +1,12 @@
|
||||
{ lib, config, ... }:
|
||||
let
|
||||
cfg = config.desktop.dm;
|
||||
in
|
||||
{
|
||||
config = lib.mkIf (cfg.name == "gdm") {
|
||||
services.xserver.displayManager.gdm = {
|
||||
enable = true;
|
||||
wayland = cfg.wayland;
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user