nixcfg/modules/nixos/system/xkb/default.nix
2024-01-11 10:31:04 +00:00

20 lines
380 B
Nix

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