mirror of
https://github.com/LnL7/nix-darwin.git
synced 2024-12-14 11:57:34 +00:00
19 lines
767 B
Nix
19 lines
767 B
Nix
{ config, pkgs, ... }:
|
|
|
|
{
|
|
system.keyboard.enableKeyMapping = true;
|
|
system.keyboard.remapCapsLockToControl = true;
|
|
system.keyboard.remapCapsLockToEscape = true;
|
|
system.keyboard.nonUS.remapTilde = 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
|
|
'';
|
|
}
|
|
|