Add all of iogamaster modules
This commit is contained in:
24
modules/nixos/system/xkb/default.nix
Normal file
24
modules/nixos/system/xkb/default.nix
Normal file
@@ -0,0 +1,24 @@
|
||||
{
|
||||
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";
|
||||
};
|
||||
};
|
||||
}
|
Reference in New Issue
Block a user