nix/module/DisplayManager.nix

19 lines
366 B
Nix
Raw Normal View History

{ config, lib, ... }:
with lib;
let
cfg = config.module.desktop.dm;
in
{
options = {
module.desktop.dm.enable = mkEnableOption "Display Manager.";
};
2024-06-25 04:04:39 +03:00
config = mkIf cfg.enable {
services.xserver.enable = true;
services.xserver.xkb = {
layout = config.setting.keyboard.layouts;
options = config.setting.keyboard.options;
};
};
2024-03-28 07:51:33 +03:00
}