style: 将项目中所有英文注释统一改为中文

This commit is contained in:
2026-04-15 16:40:20 +08:00
parent 2cd41bcd16
commit 41913d9a24
13 changed files with 68 additions and 65 deletions
+7 -7
View File
@@ -1,13 +1,13 @@
{ ... }:
{
# ── Mac Mini specific ─────────────────────────────────
# Always plugged in — 24/7 server role
# ── Mac Mini 专属配置 ────────────────────────────────
# 常驻供电 — 全天候服务器角色
# Touch ID for sudo
# Touch ID 验证 sudo
security.pam.services.sudo_local.touchIdAuth = true;
# ── Never sleep ─────────────────────────────────────
# ── 禁止睡眠 ────────────────────────────────────────
power.sleep.computer = "never";
power.sleep.display = "never";
power.sleep.harddisk = "never";
@@ -15,15 +15,15 @@
power.restartAfterPowerFailure = true;
power.restartAfterFreeze = true;
# ── Wake on LAN ──────────────────────────────────
# ── 网络唤醒(WoL─────────────────────────────────
networking.wakeOnLan.enable = true;
# ── Screen Sharing (VNC) & pmset ─────────────────
# ── 屏幕共享(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
# Disable Power Nap
# Power Nap
pmset -a powernap 0
'';
+5 -5
View File
@@ -1,15 +1,15 @@
{ ... }:
{
# ── MacBook Air specific ──────────────────────────────
# Portable — battery-conscious settings
# ── MacBook Air 专属配置 ─────────────────────────────
# 便携设备 — 注意电池续航
# Touch ID for sudo
# Touch ID 验证 sudo
security.pam.services.sudo_local.touchIdAuth = true;
# ── Notch-specific ─────────────────────────────────
# ── 刘海屏适配 ──────────────────────────────────────
homebrew.casks = [
"thaw" # menu bar manager for notched display
"thaw" # 刘海屏菜单栏管理工具
];
system.stateVersion = 5;
+1 -1
View File
@@ -2,7 +2,7 @@
{
# ── Shell ─────────────────────────────────────────────
# Remove NixOS default aliases (ls/ll/l) — managed by Home Manager eza
# 移除 NixOS 默认别名(ls/ll/l)— 由 Home Manager eza 管理
environment.shellAliases = lib.mkForce { };
# ── WSL ──────────────────────────────────────────────