25 lines
376 B
Nix
25 lines
376 B
Nix
{
|
|
options,
|
|
config,
|
|
lib,
|
|
...
|
|
}:
|
|
with lib;
|
|
with lib.frajul;
|
|
let
|
|
cfg = config.system.xkb;
|
|
in
|
|
{
|
|
options.system.xkb = with types; {
|
|
enable = mkBoolOpt false "Whether or not to configure xkb.";
|
|
};
|
|
|
|
config = mkIf cfg.enable {
|
|
console.useXkbConfig = true;
|
|
services.xserver = {
|
|
xkb.layout = "de";
|
|
# xkb.xkbOptions = "caps:escape";
|
|
};
|
|
};
|
|
}
|