refactor: 简化仓库路径,移除硬编码的 rebuild/update 命令和安装脚本

This commit is contained in:
2026-04-11 17:52:03 +08:00
parent 8965f6fc15
commit aa1b2ff23c
4 changed files with 5 additions and 43 deletions
+1 -1
View File
@@ -59,7 +59,7 @@ Fish abbreviations `rebuild` and `update` are also available in the shell (defin
- **catppuccin module name**: Uses `catppuccin.homeModules.catppuccin` (not the old `homeManagerModules`). NixOS uses `catppuccin.nixosModules.catppuccin`.
- **Homebrew tap casks**: Casks from taps need full path (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.
- **Repo location**: Must be at `~/Developer/nix-config`. Fish abbreviations and `rebuild` reference this path.
- **Repo location**: Default `~/nix-config`. Configurable via `nix_config_dir` fish variable in `home/shell/fish.nix`.
- **First-time bootstrap requires sudo**: `sudo nix run nix-darwin -- switch --flake .#mac-mini` (not `darwin-rebuild` which doesn't exist yet).
## Secrets (sops-nix)