1
0
Fork 0
mirror of https://github.com/nix-community/home-manager.git synced 2025-04-13 15:57:47 +00:00
home-manager/tests/modules/services/macos-remap-keys/basic-configuration.nix
Stanislav Alekseev 6576167e6b
macos-remap-keys: add (#6605)
A module to remap keys using macos native tool (hidutil)
2025-03-13 09:02:04 -05:00

12 lines
294 B
Nix

{
services.macos-remap-keys = {
enable = true;
keyboard = { Capslock = "Backspace"; };
};
nmt.script = ''
launchAgent=LaunchAgents/org.nix-community.home.remap-keys.plist
assertFileExists "$launchAgent"
assertFileContent "$launchAgent" ${./basic-agent.plist}
'';
}