2018-01-08 21:21:57 +00:00
|
|
|
{ config, pkgs, ... }:
|
|
|
|
|
|
|
|
{
|
|
|
|
system.keyboard.enableKeyMapping = true;
|
|
|
|
system.keyboard.remapCapsLockToControl = true;
|
|
|
|
system.keyboard.remapCapsLockToEscape = true;
|
2018-01-10 18:48:04 +00:00
|
|
|
system.keyboard.nonUS.remapTilde = true;
|
2020-10-23 14:47:38 +00:00
|
|
|
system.keyboard.swapLeftCommandAndLeftAlt = true;
|
2018-01-08 21:21:57 +00:00
|
|
|
|
|
|
|
test = ''
|
|
|
|
echo checking keyboard mappings in /activate >&2
|
|
|
|
grep "hidutil property --set '{\"UserKeyMapping\":.*}'" ${config.out}/activate
|
|
|
|
grep "\"HIDKeyboardModifierMappingSrc\":30064771129" ${config.out}/activate
|
2018-01-10 18:48:04 +00:00
|
|
|
grep "\"HIDKeyboardModifierMappingSrc\":30064771172" ${config.out}/activate
|
2018-01-08 21:21:57 +00:00
|
|
|
grep "\"HIDKeyboardModifierMappingDst\":30064771113" ${config.out}/activate
|
2018-01-10 18:48:04 +00:00
|
|
|
grep "\"HIDKeyboardModifierMappingDst\":30064771125" ${config.out}/activate
|
|
|
|
grep "\"HIDKeyboardModifierMappingDst\":30064771296" ${config.out}/activate
|
2020-10-23 14:47:38 +00:00
|
|
|
grep "\"HIDKeyboardModifierMappingDst\":30064771298" ${config.out}/activate
|
|
|
|
grep "\"HIDKeyboardModifierMappingDst\":30064771299" ${config.out}/activate
|
2018-01-08 21:21:57 +00:00
|
|
|
'';
|
|
|
|
}
|