nix/module/DisplayManager.nix

20 lines
324 B
Nix

{
config,
lib,
...
}: let
cfg = config.module.dm;
in {
options.module.dm.enable = lib.mkEnableOption "the display manager.";
config = lib.mkIf cfg.enable {
services.xserver = {
enable = true;
xkb = {
layout = config.module.keyboard.layouts;
options = config.module.keyboard.options;
};
};
};
}