chore: remove stale sops secrets recipe, sync AGENTS.md
- Remove justfile secrets recipe (sops no longer used) - Add just rollback and WSL bootstrap to AGENTS.md - Clarify just clean is user-level only
This commit is contained in:
@@ -34,12 +34,12 @@ All platforms use **Lix** (`nix.package = pkgs.lix` in `modules/shared/nix.nix`)
|
|||||||
just rebuild mac-mini # rebuild macOS host (on macOS)
|
just rebuild mac-mini # rebuild macOS host (on macOS)
|
||||||
just rebuild macbook-air
|
just rebuild macbook-air
|
||||||
just rebuild # rebuild WSL (linux only, default: "wsl")
|
just rebuild # rebuild WSL (linux only, default: "wsl")
|
||||||
|
just rollback # rollback to previous generation (linux only)
|
||||||
just check # eval configs without building (platform-aware)
|
just check # eval configs without building (platform-aware)
|
||||||
just update # nix flake update
|
just update # nix flake update
|
||||||
just up nixpkgs # update a single flake input
|
just up nixpkgs # update a single flake input
|
||||||
just show # nix flake show
|
just show # nix flake show
|
||||||
just secrets # sops secrets/secrets.yaml
|
just clean # nix-collect-garbage -d (user-level only; NixOS system-level needs sudo)
|
||||||
just clean # nix-collect-garbage -d
|
|
||||||
just history # list system profile generations
|
just history # list system profile generations
|
||||||
just lsp mac-mini # generate .vscode/settings.json for nixd option completion
|
just lsp mac-mini # generate .vscode/settings.json for nixd option completion
|
||||||
|
|
||||||
@@ -51,6 +51,10 @@ nix build .#darwinConfigurations.mac-mini.system # validate (full bu
|
|||||||
|
|
||||||
# First-time bootstrap (nix-darwin not yet installed)
|
# First-time bootstrap (nix-darwin not yet installed)
|
||||||
sudo nix run nix-darwin -- switch --flake .#mac-mini
|
sudo nix run nix-darwin -- switch --flake .#mac-mini
|
||||||
|
|
||||||
|
# First-time bootstrap WSL (fresh NixOS-WSL has no git)
|
||||||
|
nix-shell -p git --run "git clone <repo-url> ~/nix-config"
|
||||||
|
cd ~/nix-config && sudo nixos-rebuild switch --flake .#wsl
|
||||||
```
|
```
|
||||||
|
|
||||||
## Critical gotchas
|
## Critical gotchas
|
||||||
@@ -59,7 +63,8 @@ sudo nix run nix-darwin -- switch --flake .#mac-mini
|
|||||||
- **catppuccin module name**: Home-manager uses `catppuccin.homeModules.catppuccin` (imported in `home/default.nix`). NixOS uses `catppuccin.nixosModules.catppuccin` (in `lib/default.nix`). Don't use the old `homeManagerModules` name.
|
- **catppuccin module name**: Home-manager uses `catppuccin.homeModules.catppuccin` (imported in `home/default.nix`). NixOS uses `catppuccin.nixosModules.catppuccin` (in `lib/default.nix`). Don't use the old `homeManagerModules` name.
|
||||||
- **Homebrew tap casks**: Casks from taps need full path (e.g. `"goooler/repo/fl-clash"`), not just the short name.
|
- **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.
|
- **`onActivation.cleanup = "zap"`**: Any brew formula/cask NOT declared in `modules/darwin/default.nix` WILL be removed on rebuild. Be comprehensive.
|
||||||
- **First-time bootstrap requires sudo**: `sudo nix run nix-darwin -- switch --flake .#mac-mini` (not `darwin-rebuild` which doesn't exist yet).
|
- **First-time macOS bootstrap requires sudo**: `sudo nix run nix-darwin -- switch --flake .#mac-mini` (not `darwin-rebuild` which doesn't exist yet).
|
||||||
|
- **First-time WSL bootstrap needs `nix-shell -p git`**: Fresh NixOS-WSL has no `git`. Use `nix-shell -p git --run "git clone ..."` to clone, then `sudo nixos-rebuild switch`.
|
||||||
- **mise for version management**: Activated in `home/shell/fish.nix` via `mise activate fish | source`. Config in `home/dev/languages.nix` trusts all config paths.
|
- **mise for version management**: Activated in `home/shell/fish.nix` via `mise activate fish | source`. Config in `home/dev/languages.nix` trusts all config paths.
|
||||||
|
|
||||||
## Secrets (1Password CLI)
|
## Secrets (1Password CLI)
|
||||||
|
|||||||
@@ -72,15 +72,10 @@ clean:
|
|||||||
|
|
||||||
############################################################################
|
############################################################################
|
||||||
#
|
#
|
||||||
# Secrets & tooling
|
# Tooling
|
||||||
#
|
#
|
||||||
############################################################################
|
############################################################################
|
||||||
|
|
||||||
# Edit encrypted secrets
|
|
||||||
[group('tools')]
|
|
||||||
secrets:
|
|
||||||
sops secrets/secrets.yaml
|
|
||||||
|
|
||||||
# Generate .vscode/settings.json with LSP option completion
|
# Generate .vscode/settings.json with LSP option completion
|
||||||
[macos]
|
[macos]
|
||||||
[group('tools')]
|
[group('tools')]
|
||||||
|
|||||||
Reference in New Issue
Block a user