Use per-host keyboard remap
This commit is contained in:
parent
d4b21adaa2
commit
1d55150bf2
4 changed files with 24 additions and 6 deletions
|
@ -68,10 +68,7 @@ in
|
|||
};
|
||||
services.xserver.layout = "halmakish";
|
||||
console.useXkbConfig = true;
|
||||
kmonad = {
|
||||
enable = true;
|
||||
keyboards.default.config = builtins.readFile ./halmakish.kbd;
|
||||
};
|
||||
kmonad.enable = true;
|
||||
|
||||
# Power
|
||||
systemd.ctrlAltDelUnit = "poweroff.target";
|
||||
|
|
|
@ -66,7 +66,10 @@
|
|||
networking.interfaces.wifi.useDHCP = true;
|
||||
|
||||
# Keyboard
|
||||
kmonad.keyboards.default.device = "/dev/input/by-path/platform-i8042-serio-0-event-kbd";
|
||||
kmonad.keyboards.default = {
|
||||
device = "/dev/input/by-path/platform-i8042-serio-0-event-kbd";
|
||||
config = builtins.readFile ./halmakish.kbd;
|
||||
};
|
||||
|
||||
# Authentication
|
||||
security.pam.u2f.appId = "pam://main";
|
||||
|
|
15
hosts/wrangler/halmakish.kbd
Normal file
15
hosts/wrangler/halmakish.kbd
Normal file
|
@ -0,0 +1,15 @@
|
|||
(defsrc
|
||||
` 1 2 3 4 5 6 7 8 9 0 - = bspc
|
||||
tab q w e r t y u i o p [ ] \
|
||||
caps a s d f g h j k l ; ' ret
|
||||
lsft z x c v b n m , . / rsft
|
||||
lctl lmet lalt spc ralt rctrl
|
||||
)
|
||||
|
||||
(deflayer main
|
||||
_ f1 f2 f3 f4 f5 f6 f7 f8 f9 f10 f11 f12 _
|
||||
g _ _ _ _ _ _ _ _ _ _ _ _ _
|
||||
bspc _ _ _ _ ret _ _ _ _ _ _ _
|
||||
m _ _ _ _ _ _ spc _ _ _ ]
|
||||
lmet tab lctl rsft _ lalt
|
||||
)
|
|
@ -25,7 +25,10 @@
|
|||
networking.interfaces.wifi.useDHCP = true;
|
||||
|
||||
# Keyboard
|
||||
kmonad.keyboards.default.device = "/dev/input/by-path/platform-i8042-serio-0-event-kbd";
|
||||
kmonad.keyboards.default = {
|
||||
device = "/dev/input/by-path/platform-i8042-serio-0-event-kbd";
|
||||
config = builtins.readFile ./halmakish.kbd;
|
||||
};
|
||||
|
||||
# Authentication
|
||||
security.pam.u2f.appId = "pam://wrangler";
|
||||
|
|
Loading…
Reference in a new issue