Dark mode, the Dock, your trackpad, keyboard shortcuts, the firewall and hundreds more, one readable line each. Set up a new Mac in one rebuild, and never click through System Settings again.
Each line goes inside programs.nix-plist-manager.options.applications.systemSettings, like the configuration above. Finder, Journal and Voice Memos have theirs under applications.
desktopAndDock.dock.automaticallyHideAndShowTheDock is the switch labeled
Automatically hide and show the Dock in Desktop & Dock. The values are the words in the
pop-up menus: "Sunset to Sunrise", "Lock Screen", "Three Finger Drag".
Start from the Mac you have
nix run github:sushydev/nix-plist-manager#current reads your Mac and writes its
settings out as a Nix file to import. Change something later and --against shows just that.
Checked against the real thing
Every setting was worked out from what macOS itself writes, and 398 of
them are round-tripped through System Settings on macOS 27 to prove it shows your value.
Applied the way macOS does
The Dock restarts, keyboard shortcuts activate without logging out, the firewall goes
through Apple’s own tool. The settings that only apply at login say so.
Per user and system-wide
Your preferences through home-manager, the machine’s (firewall, sharing, power, login
window) through nix-darwin, with the same option names.
Even what you arrange
The Dock’s apps, the menu bar’s layout and your wallpaper are captured once and restored on
every Mac.