nixos-config/modules/nixos/system/xkb/default.nix
christoph.hollizeck 16770c5d67 bugs
2024-03-26 19:23:10 +01:00

21 lines
406 B
Nix

{ options, config, lib, ... }:
with lib;
with lib.wyrdgard;
let
cfg = config.wyrdgard.system.xkb;
in
{
options.wyrdgard.system.xkb = with types; {
enable = mkBoolOpt false "Whether or not to configure xkb.";
};
config = mkIf cfg.enable {
console.useXkbConfig = true;
services.xserver = {
xkb.layout = "us";
xkb.variant = "";
xkbOptions = "caps:escape";
};
};
}