nix/module/DisplayManager.nix
2024-11-06 01:07:30 +03:00

20 lines
340 B
Nix

{
config,
lib,
...
}: let
cfg = config.module.desktop.dm;
in {
options.module.desktop.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;
};
};
};
}