mirror of
https://github.com/LnL7/nix-darwin.git
synced 2024-09-11 12:49:18 +03:00
22 lines
978 B
Nix
22 lines
978 B
Nix
{ config, pkgs, ... }:
|
|
|
|
{
|
|
system.keyboard.enableKeyMapping = true;
|
|
system.keyboard.remapCapsLockToControl = true;
|
|
system.keyboard.remapCapsLockToEscape = true;
|
|
system.keyboard.nonUS.remapTilde = true;
|
|
system.keyboard.swapLeftCommandAndLeftAlt = true;
|
|
|
|
test = ''
|
|
echo checking keyboard mappings in /activate >&2
|
|
grep "hidutil property --set '{\"UserKeyMapping\":.*}'" ${config.out}/activate
|
|
grep "\"HIDKeyboardModifierMappingSrc\":30064771129" ${config.out}/activate
|
|
grep "\"HIDKeyboardModifierMappingSrc\":30064771172" ${config.out}/activate
|
|
grep "\"HIDKeyboardModifierMappingDst\":30064771113" ${config.out}/activate
|
|
grep "\"HIDKeyboardModifierMappingDst\":30064771125" ${config.out}/activate
|
|
grep "\"HIDKeyboardModifierMappingDst\":30064771296" ${config.out}/activate
|
|
grep "\"HIDKeyboardModifierMappingDst\":30064771298" ${config.out}/activate
|
|
grep "\"HIDKeyboardModifierMappingDst\":30064771299" ${config.out}/activate
|
|
'';
|
|
}
|