nixcfg/modules/nixos/system/xkb/default.nix

20 lines
380 B
Nix
Raw Normal View History

2024-01-11 11:26:46 +01:00
{ 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";
};
};
}