23 lines
385 B
Nix
23 lines
385 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";
|
|
xkbOptions = "caps:escape";
|
|
};
|
|
};
|
|
}
|