From cfe64d5ed91babb13d8e30cbfead91c171760594 Mon Sep 17 00:00:00 2001 From: imbytecat Date: Sat, 11 Apr 2026 18:14:58 +0800 Subject: [PATCH] =?UTF-8?q?feat(mac-mini):=20=E5=90=AF=E7=94=A8=E5=B1=8F?= =?UTF-8?q?=E5=B9=95=E5=85=B1=E4=BA=AB=20(VNC)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hosts/mac-mini/default.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/hosts/mac-mini/default.nix b/hosts/mac-mini/default.nix index 93b9c00..802799d 100644 --- a/hosts/mac-mini/default.nix +++ b/hosts/mac-mini/default.nix @@ -15,5 +15,11 @@ power.restartAfterPowerFailure = true; power.restartAfterFreeze = true; + # ── Screen Sharing (VNC) ───────────────────────── + system.activationScripts.postActivation.text = '' + launchctl enable system/com.apple.screensharing + launchctl load -w /System/Library/LaunchDaemons/com.apple.screensharing.plist 2>/dev/null || true + ''; + system.stateVersion = 5; }