fix: 统一文档与代码中的仓库路径和安装器推荐

- AGENTS.md: 移除'README 还指向 Determinate'的过时描述
- fish.nix: rebuild/update 路径从 ~/.config 改为 ~/Developer
- fish.nix: darwin rebuild 加 sudo
- AGENTS.md: repo location 描述与实际一致
This commit is contained in:
2026-04-10 23:59:09 +08:00
parent 7c52bdc3c4
commit e9146a4e4d
3 changed files with 8 additions and 6 deletions
+3 -1
View File
@@ -2,11 +2,13 @@
active: true active: true
iteration: 2 iteration: 2
max_iterations: 500 max_iterations: 500
completion_promise: "DONE" completion_promise: "VERIFIED"
initial_completion_promise: "DONE" initial_completion_promise: "DONE"
verification_attempt_id: "8bd02d34-4ca9-4686-b3ad-ae8a2330ad40"
started_at: "2026-04-10T15:43:59.279Z" started_at: "2026-04-10T15:43:59.279Z"
session_id: "ses_28863d32affeOW6Iiz2415uZSk" session_id: "ses_28863d32affeOW6Iiz2415uZSk"
ultrawork: true ultrawork: true
verification_pending: true
strategy: "continue" strategy: "continue"
message_count_at_start: 169 message_count_at_start: 169
--- ---
+2 -2
View File
@@ -22,12 +22,12 @@ flake.nix
## Critical gotchas ## Critical gotchas
- **Determinate Nix on macOS (tech debt)**: macOS currently runs Determinate Nix (commercial downstream). `modules/shared/nix.nix` sets `nix.enable = !pkgs.stdenv.isDarwin` — on darwin, nix-darwin does NOT manage: nix daemon, `/etc/nix/nix.conf`, nix version, `nix.settings`. All nix configuration on macOS is controlled by Determinate's `determinate-nixd`. The `nix.settings` block (flakes, warn-dirty) only applies on NixOS/WSL. **nix-darwin officially recommends Lix installer (not Determinate) as of 2025-12.** Migration to Lix would restore `nix.enable = true` and unified `nix.settings` across all 3 devices. README still references `install.determinate.systems` — update if/when migrating. - **Determinate Nix on macOS (tech debt)**: macOS currently runs Determinate Nix (commercial downstream). `modules/shared/nix.nix` sets `nix.enable = !pkgs.stdenv.isDarwin` — on darwin, nix-darwin does NOT manage: nix daemon, `/etc/nix/nix.conf`, nix version, `nix.settings`. All nix configuration on macOS is controlled by Determinate's `determinate-nixd`. The `nix.settings` block (flakes, warn-dirty) only applies on NixOS/WSL. **nix-darwin officially recommends Lix installer (not Determinate) as of 2025-12.** README already updated to recommend Lix for new installs. Migration to Lix would restore `nix.enable = true` and unified `nix.settings` across all 3 devices.
- **catppuccin.nvim disabled**: `catppuccin.nvim.enable = false` in `home/theme.nix` due to `catppuccin.lib.detect_integrations` require check failure in nixpkgs. Re-test periodically. - **catppuccin.nvim disabled**: `catppuccin.nvim.enable = false` in `home/theme.nix` due to `catppuccin.lib.detect_integrations` require check failure in nixpkgs. Re-test periodically.
- **catppuccin module name**: Uses `catppuccin.homeModules.catppuccin` (not the old `homeManagerModules`). - **catppuccin module name**: Uses `catppuccin.homeModules.catppuccin` (not the old `homeManagerModules`).
- **Homebrew tap casks**: Casks from taps need full path in the casks list (e.g. `"goooler/repo/fl-clash"`), not just the short name. - **Homebrew tap casks**: Casks from taps need full path in the casks list (e.g. `"goooler/repo/fl-clash"`), not just the short name.
- **`onActivation.cleanup = "zap"`**: Any brew formula/cask NOT declared in `modules/darwin/default.nix` WILL be removed on rebuild. Be comprehensive. - **`onActivation.cleanup = "zap"`**: Any brew formula/cask NOT declared in `modules/darwin/default.nix` WILL be removed on rebuild. Be comprehensive.
- **Repo location**: The repo lives at `~/Developer/nix-config`, NOT `~/.config/nix-config`. The `rebuild` fish abbreviation references `~/.config/nix-config` — symlink or update if needed. - **Repo location**: The repo lives at `~/Developer/nix-config`. Fish abbreviations (`rebuild`, `update`) reference this path.
- **First-time bootstrap requires sudo**: `sudo nix run nix-darwin -- switch --flake .#mac-mini` (not `darwin-rebuild` which doesn't exist yet). - **First-time bootstrap requires sudo**: `sudo nix run nix-darwin -- switch --flake .#mac-mini` (not `darwin-rebuild` which doesn't exist yet).
## Commands ## Commands
+3 -3
View File
@@ -25,7 +25,7 @@
http = "xh"; http = "xh";
# Nix # Nix
update = "nix flake update --flake ~/.config/nix-config"; update = "nix flake update --flake ~/Developer/nix-config";
}; };
interactiveShellInit = '' interactiveShellInit = ''
@@ -43,9 +43,9 @@
# Platform-specific rebuild command # Platform-specific rebuild command
if test (uname) = Darwin if test (uname) = Darwin
abbr --add rebuild "darwin-rebuild switch --flake ~/.config/nix-config" abbr --add rebuild "sudo darwin-rebuild switch --flake ~/Developer/nix-config"
else else
abbr --add rebuild "sudo nixos-rebuild switch --flake ~/.config/nix-config" abbr --add rebuild "sudo nixos-rebuild switch --flake ~/Developer/nix-config"
end end
# WSL clipboard # WSL clipboard