diff --git a/nix-darwin/default.nix b/nix-darwin/default.nix index 010d4f574..a56b3cdd6 100644 --- a/nix-darwin/default.nix +++ b/nix-darwin/default.nix @@ -134,7 +134,7 @@ in system.activationScripts.postActivation.text = concatStringsSep "\n" (mapAttrsToList (username: usercfg: '' echo Activating home-manager configuration for ${username} - sudo -u ${username} -i ${pkgs.writeShellScript "activation-${username}" '' + sudo -u ${username} -s ${pkgs.writeShellScript "activation-${username}" '' ${lib.optionalString (cfg.backupFileExtension != null) "export HOME_MANAGER_BACKUP_EXT=${lib.escapeShellArg cfg.backupFileExtension}"} ${lib.optionalString cfg.verbose "export VERBOSE=1"}