From 5f38f29d38fefeb6194421dd525b039ee3b3c27c Mon Sep 17 00:00:00 2001 From: Bo Jeanes Date: Sun, 11 Aug 2024 16:15:40 +1000 Subject: [PATCH] Ask macOS to activate settings that have changed on `nix run` --- flake.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/flake.nix b/flake.nix index ccfe78e..0d97f06 100644 --- a/flake.nix +++ b/flake.nix @@ -193,6 +193,12 @@ system.keyboard.enableKeyMapping = 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 = { # Show file extensions in Finder finder.AppleShowAllExtensions = true;