From 7c52bdc3c4304b80490576416e61fe46c31ebe87 Mon Sep 17 00:00:00 2001 From: imbytecat Date: Fri, 10 Apr 2026 23:51:37 +0800 Subject: [PATCH] =?UTF-8?q?docs:=20README=20=E6=94=B9=E7=94=A8=20Lix=20?= =?UTF-8?q?=E5=AE=89=E8=A3=85=E5=99=A8=E6=8E=A8=E8=8D=90=EF=BC=8C=E4=BF=AE?= =?UTF-8?q?=E6=AD=A3=20bootstrap=20=E5=91=BD=E4=BB=A4=E5=92=8C=E4=BB=93?= =?UTF-8?q?=E5=BA=93=E8=B7=AF=E5=BE=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 24 +++++++++++++----------- 1 file changed, 13 insertions(+), 11 deletions(-) diff --git a/README.md b/README.md index 3eab5a3..e1423a6 100644 --- a/README.md +++ b/README.md @@ -14,21 +14,23 @@ ### macOS (Mac Mini / MacBook Air) -1. 安装 Nix: +1. 安装 Nix(推荐 [Lix 安装器](https://lix.systems/install/)): ```bash -curl --proto '=https' --tlsv1.2 -sSf -L https://install.determinate.systems/nix | sh +curl -sSf -L https://install.lix.systems/lix | sh -s -- install ``` -2. 克隆仓库并构建: +> **注意**:当前机器使用 Determinate Nix,需要 `nix.enable = false`(已在 `modules/shared/nix.nix` 中配置)。新机器建议使用 Lix,可省去此限制。详见 `AGENTS.md`。 + +2. 克隆仓库并首次构建: ```bash -git clone ~/.config/nix-config -cd ~/.config/nix-config -# Mac Mini: -darwin-rebuild switch --flake .#mac-mini -# MacBook Air: -darwin-rebuild switch --flake .#macbook-air +git clone ~/Developer/nix-config +cd ~/Developer/nix-config +# 首次(nix-darwin 尚未安装): +sudo nix run nix-darwin -- switch --flake .#mac-mini +# 之后日常重建: +sudo darwin-rebuild switch --flake .#mac-mini ``` ### WSL (Windows PC) @@ -43,8 +45,8 @@ wsl -d NixOS 2. 克隆仓库并构建: ```bash -git clone ~/.config/nix-config -cd ~/.config/nix-config +git clone ~/Developer/nix-config +cd ~/Developer/nix-config sudo nixos-rebuild switch --flake .#wsl ```