feat(mac-mini): 启用 Wake on LAN,关闭 Power Nap

This commit is contained in:
2026-04-11 20:15:31 +08:00
parent cfe64d5ed9
commit 7686f7209b
2 changed files with 62 additions and 1 deletions
+6 -1
View File
@@ -15,10 +15,15 @@
power.restartAfterPowerFailure = true;
power.restartAfterFreeze = true;
# ── Screen Sharing (VNC) ─────────────────────────
# ── Screen Sharing (VNC) & pmset ─────────────────
system.activationScripts.postActivation.text = ''
# VNC
launchctl enable system/com.apple.screensharing
launchctl load -w /System/Library/LaunchDaemons/com.apple.screensharing.plist 2>/dev/null || true
# Wake on LAN
pmset -a womp 1
# Disable Power Nap
pmset -a powernap 0
'';
system.stateVersion = 5;