Skip to content

Commit

Permalink
Codify some more macOS defaults
Browse files Browse the repository at this point in the history
These are around which updates macOS should automatically install. Previously, I
disabled updates from the App Store, because they are managed by `mas`, and this
just add more settings in that vein.
  • Loading branch information
sellout committed Feb 24, 2025
1 parent 2379f68 commit b77e1db
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions nix/modules/darwin-configuration.nix
Original file line number Diff line number Diff line change
Expand Up @@ -224,5 +224,10 @@
};
};

## For any of this to work, we need to enable automatic updates in general.
system.defaults.CustomSystemPreferences."com.apple.SoftwareUpdate".AutomaticCheckEnabled = true;
## This will automatically install macOS updates, which we want because Nix
## doesn’t manage the OS.
system.defaults.CustomSystemPreferences."com.apple.commerce".AutoUpdateRestartRequired = true;
system.defaults.SoftwareUpdate.AutomaticallyInstallMacOSUpdates = true;
}

0 comments on commit b77e1db

Please sign in to comment.