Skip to content

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.

5 options 5 verified against System Settings

System Settings › Wi‑Fi › Ask to join hotspots

nix-darwin · system-wide ✓ Verified on macOS 27
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.preferences AutoHotspotMode

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' >&2

For 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' >&2

For 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' >&2

For unset:

/usr/bin/defaults delete /Library/Preferences/SystemConfiguration/com.apple.airport.preferences AutoHotspotMode 2>/dev/null || true

System Settings › Wi‑Fi › Ask to join networks

nix-darwin · system-wide ✓ Verified on macOS 27
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.preferences JoinModeFallback

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' >&2

For 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' >&2

For 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' >&2

For unset:

/usr/bin/defaults delete /Library/Preferences/SystemConfiguration/com.apple.airport.preferences JoinModeFallback 2>/dev/null || true

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

nix-darwin · system-wide ✓ Verified on macOS 27
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.preferences RequireAdminNetworkChange

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' >&2

For 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' >&2

For unset:

/usr/bin/defaults delete /Library/Preferences/SystemConfiguration/com.apple.airport.preferences RequireAdminNetworkChange 2>/dev/null || true

Require 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

nix-darwin · system-wide ✓ Verified on macOS 27
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.preferences RequireAdminPowerToggle

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' >&2

For 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' >&2

For unset:

/usr/bin/defaults delete /Library/Preferences/SystemConfiguration/com.apple.airport.preferences RequireAdminPowerToggle 2>/dev/null || true

System Settings › Wi‑Fi › Advanced… › Show legacy networks and options

nix-darwin · system-wide ✓ Verified on macOS 27
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.preferences AllowLegacyNetworks

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' >&2

For 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' >&2

For unset:

/usr/bin/defaults delete /Library/Preferences/SystemConfiguration/com.apple.airport.preferences AllowLegacyNetworks 2>/dev/null || true

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