Wi‑Fi
Everything under System Settings › Wi‑Fi, as Nix options. Each one is named after the control
you'd click, and set under programs.nix-plist-manager.options in nix-darwin.
Ask to join hotspots
Section titled “Ask to join hotspots”System Settings › Wi‑Fi › Ask to join hotspots
applications.systemSettings.wiFi.askToJoinHotspots = "Ask To Join"; One of: "Ask To Join""Automatic""Never" "unset" puts back macOS's default.
Where it's stored and what runs
-
/Library/Preferences/SystemConfiguration/com.apple.airport.preferencesAutoHotspotMode
For Ask To Join:
/usr/bin/defaults write /Library/Preferences/SystemConfiguration/com.apple.airport.preferences AutoHotspotMode -string AskToJoin || echo 'nix-plist-manager: failed: /usr/bin/defaults write /Library/Preferences/SystemConfiguration/com.apple.airport.preferences AutoHotspotMode -string AskToJoin' >&2For Automatic:
/usr/bin/defaults write /Library/Preferences/SystemConfiguration/com.apple.airport.preferences AutoHotspotMode -string Automatic || echo 'nix-plist-manager: failed: /usr/bin/defaults write /Library/Preferences/SystemConfiguration/com.apple.airport.preferences AutoHotspotMode -string Automatic' >&2For Never:
/usr/bin/defaults write /Library/Preferences/SystemConfiguration/com.apple.airport.preferences AutoHotspotMode -string Never || echo 'nix-plist-manager: failed: /usr/bin/defaults write /Library/Preferences/SystemConfiguration/com.apple.airport.preferences AutoHotspotMode -string Never' >&2For unset:
/usr/bin/defaults delete /Library/Preferences/SystemConfiguration/com.apple.airport.preferences AutoHotspotMode 2>/dev/null || trueAsk to join networks
Section titled “Ask to join networks”System Settings › Wi‑Fi › Ask to join networks
applications.systemSettings.wiFi.askToJoinNetworks = "Ask"; One of: "Ask""Notify""Off" "unset" puts back macOS's default.
Where it's stored and what runs
-
/Library/Preferences/SystemConfiguration/com.apple.airport.preferencesJoinModeFallback
For Ask:
/usr/bin/defaults write /Library/Preferences/SystemConfiguration/com.apple.airport.preferences JoinModeFallback -array -string Prompt || echo 'nix-plist-manager: failed: /usr/bin/defaults write /Library/Preferences/SystemConfiguration/com.apple.airport.preferences JoinModeFallback -array -string Prompt' >&2For Notify:
/usr/bin/defaults write /Library/Preferences/SystemConfiguration/com.apple.airport.preferences JoinModeFallback -array -string Notify || echo 'nix-plist-manager: failed: /usr/bin/defaults write /Library/Preferences/SystemConfiguration/com.apple.airport.preferences JoinModeFallback -array -string Notify' >&2For Off:
/usr/bin/defaults write /Library/Preferences/SystemConfiguration/com.apple.airport.preferences JoinModeFallback -array -string DoNothing || echo 'nix-plist-manager: failed: /usr/bin/defaults write /Library/Preferences/SystemConfiguration/com.apple.airport.preferences JoinModeFallback -array -string DoNothing' >&2For unset:
/usr/bin/defaults delete /Library/Preferences/SystemConfiguration/com.apple.airport.preferences JoinModeFallback 2>/dev/null || trueAdvanced…
Section titled “Advanced…”Require administrator authorization to › Change networks
Section titled “Require administrator authorization to › Change networks”System Settings › Wi‑Fi › Advanced… › Require administrator authorization to › Change networks
applications.systemSettings.wiFi.requireAdministratorAuthorizationTo.changeNetworks = true; true or false "unset" puts back macOS's default.
Where it's stored and what runs
-
/Library/Preferences/SystemConfiguration/com.apple.airport.preferencesRequireAdminNetworkChange
For false:
/usr/bin/defaults write /Library/Preferences/SystemConfiguration/com.apple.airport.preferences RequireAdminNetworkChange -bool false || echo 'nix-plist-manager: failed: /usr/bin/defaults write /Library/Preferences/SystemConfiguration/com.apple.airport.preferences RequireAdminNetworkChange -bool false' >&2For true:
/usr/bin/defaults write /Library/Preferences/SystemConfiguration/com.apple.airport.preferences RequireAdminNetworkChange -bool true || echo 'nix-plist-manager: failed: /usr/bin/defaults write /Library/Preferences/SystemConfiguration/com.apple.airport.preferences RequireAdminNetworkChange -bool true' >&2For unset:
/usr/bin/defaults delete /Library/Preferences/SystemConfiguration/com.apple.airport.preferences RequireAdminNetworkChange 2>/dev/null || trueRequire administrator authorization to › Turn Wi‑Fi on or off
Section titled “Require administrator authorization to › Turn Wi‑Fi on or off”System Settings › Wi‑Fi › Advanced… › Require administrator authorization to › Turn Wi‑Fi on or off
applications.systemSettings.wiFi.requireAdministratorAuthorizationTo.turnWiFiOnOrOff = true; true or false "unset" puts back macOS's default.
Where it's stored and what runs
-
/Library/Preferences/SystemConfiguration/com.apple.airport.preferencesRequireAdminPowerToggle
For false:
/usr/bin/defaults write /Library/Preferences/SystemConfiguration/com.apple.airport.preferences RequireAdminPowerToggle -bool false || echo 'nix-plist-manager: failed: /usr/bin/defaults write /Library/Preferences/SystemConfiguration/com.apple.airport.preferences RequireAdminPowerToggle -bool false' >&2For true:
/usr/bin/defaults write /Library/Preferences/SystemConfiguration/com.apple.airport.preferences RequireAdminPowerToggle -bool true || echo 'nix-plist-manager: failed: /usr/bin/defaults write /Library/Preferences/SystemConfiguration/com.apple.airport.preferences RequireAdminPowerToggle -bool true' >&2For unset:
/usr/bin/defaults delete /Library/Preferences/SystemConfiguration/com.apple.airport.preferences RequireAdminPowerToggle 2>/dev/null || trueShow legacy networks and options
Section titled “Show legacy networks and options”System Settings › Wi‑Fi › Advanced… › Show legacy networks and options
applications.systemSettings.wiFi.showLegacyNetworksAndOptions = true; true or false "unset" puts back macOS's default.
Where it's stored and what runs
-
/Library/Preferences/SystemConfiguration/com.apple.airport.preferencesAllowLegacyNetworks
For false:
/usr/bin/defaults write /Library/Preferences/SystemConfiguration/com.apple.airport.preferences AllowLegacyNetworks -bool false || echo 'nix-plist-manager: failed: /usr/bin/defaults write /Library/Preferences/SystemConfiguration/com.apple.airport.preferences AllowLegacyNetworks -bool false' >&2For true:
/usr/bin/defaults write /Library/Preferences/SystemConfiguration/com.apple.airport.preferences AllowLegacyNetworks -bool true || echo 'nix-plist-manager: failed: /usr/bin/defaults write /Library/Preferences/SystemConfiguration/com.apple.airport.preferences AllowLegacyNetworks -bool true' >&2For unset:
/usr/bin/defaults delete /Library/Preferences/SystemConfiguration/com.apple.airport.preferences AllowLegacyNetworks 2>/dev/null || trueNot covered
Section titled “Not covered”What this pane shows that can’t be declared, and why:
1 setting
- Wi‑Fi — Wi-Fi on or off changes in daily use and belongs to the hardware