docs: README 改用 Lix 安装器推荐,修正 bootstrap 命令和仓库路径
This commit is contained in:
@@ -14,21 +14,23 @@
|
|||||||
|
|
||||||
### macOS (Mac Mini / MacBook Air)
|
### macOS (Mac Mini / MacBook Air)
|
||||||
|
|
||||||
1. 安装 Nix:
|
1. 安装 Nix(推荐 [Lix 安装器](https://lix.systems/install/)):
|
||||||
|
|
||||||
```bash
|
```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
|
```bash
|
||||||
git clone <repo-url> ~/.config/nix-config
|
git clone <repo-url> ~/Developer/nix-config
|
||||||
cd ~/.config/nix-config
|
cd ~/Developer/nix-config
|
||||||
# Mac Mini:
|
# 首次(nix-darwin 尚未安装):
|
||||||
darwin-rebuild switch --flake .#mac-mini
|
sudo nix run nix-darwin -- switch --flake .#mac-mini
|
||||||
# MacBook Air:
|
# 之后日常重建:
|
||||||
darwin-rebuild switch --flake .#macbook-air
|
sudo darwin-rebuild switch --flake .#mac-mini
|
||||||
```
|
```
|
||||||
|
|
||||||
### WSL (Windows PC)
|
### WSL (Windows PC)
|
||||||
@@ -43,8 +45,8 @@ wsl -d NixOS
|
|||||||
2. 克隆仓库并构建:
|
2. 克隆仓库并构建:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
git clone <repo-url> ~/.config/nix-config
|
git clone <repo-url> ~/Developer/nix-config
|
||||||
cd ~/.config/nix-config
|
cd ~/Developer/nix-config
|
||||||
sudo nixos-rebuild switch --flake .#wsl
|
sudo nixos-rebuild switch --flake .#wsl
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user