Ask macOS to activate settings that have changed on `nix run`

wip
Bo Jeanes 2024-08-11 16:15:40 +10:00
parent c8b57ef276
commit 5f38f29d38
No known key found for this signature in database
1 changed files with 6 additions and 0 deletions

View File

@ -193,6 +193,12 @@
system.keyboard.enableKeyMapping = true; system.keyboard.enableKeyMapping = true;
system.keyboard.remapCapsLockToControl = true; system.keyboard.remapCapsLockToControl = true;
# https://archive.is/KBa2w
system.activationScripts.postUserActivation.text = ''
# Following line should allow us to avoid a logout/login cycle
/System/Library/PrivateFrameworks/SystemAdministration.framework/Resources/activateSettings -u
'';
system.defaults = { system.defaults = {
# Show file extensions in Finder # Show file extensions in Finder
finder.AppleShowAllExtensions = true; finder.AppleShowAllExtensions = true;