moving to new config
This commit is contained in:
parent
37a0102a94
commit
030f251ce9
8 changed files with 224 additions and 30 deletions
22
modules/nixos/system/xkb/default.nix
Normal file
22
modules/nixos/system/xkb/default.nix
Normal file
|
@ -0,0 +1,22 @@
|
|||
{ 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";
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue