From 27df617701b5517a38a26d3ef7a2299ca6aa9cd8 Mon Sep 17 00:00:00 2001 From: imbytecat Date: Sat, 11 Apr 2026 20:22:57 +0800 Subject: [PATCH] =?UTF-8?q?refactor(mac-mini):=20Wake=20on=20LAN=20?= =?UTF-8?q?=E6=94=B9=E7=94=A8=E5=8E=9F=E7=94=9F=20networking.wakeOnLan=20?= =?UTF-8?q?=E9=80=89=E9=A1=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hosts/mac-mini/default.nix | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/hosts/mac-mini/default.nix b/hosts/mac-mini/default.nix index a583ab8..536f76f 100644 --- a/hosts/mac-mini/default.nix +++ b/hosts/mac-mini/default.nix @@ -15,13 +15,14 @@ power.restartAfterPowerFailure = true; power.restartAfterFreeze = true; + # ── Wake on LAN ────────────────────────────────── + networking.wakeOnLan.enable = true; + # ── 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 '';