diff options
| author | Christian <[email protected]> | 2026-05-24 08:19:20 -0500 |
|---|---|---|
| committer | Christian <[email protected]> | 2026-05-24 08:19:20 -0500 |
| commit | 8ef9e530eff52c751389162972f28ef6a558b2b9 (patch) | |
| tree | ed55b14bd2105a8cff0a763792f2ffac472f2379 | |
| parent | a13dd5c1992d7804ba28530a13510fe5842596d5 (diff) | |
Remove dry-rebuild alias references from CLAUDE.md
| -rw-r--r-- | CLAUDE.md | 12 |
1 files changed, 7 insertions, 5 deletions
@@ -10,16 +10,18 @@ This is a NixOS flake-based configuration managing three machines: desktop, lapt ### Verify Changes (use this first) ```bash -dry-rebuild # Alias for: nix build ~/.config/nixos#nixosConfigurations.$(hostname).config.system.build.toplevel --no-link +nix build ~/.config/nixos#nixosConfigurations.$(hostname).config.system.build.toplevel --no-link ``` -**Always run `dry-rebuild` after making changes** to catch evaluation and build errors without needing sudo or activating the system. Claude Code cannot run `sudo`, so `dry-rebuild` is the required verification step. +Use this to catch evaluation and build errors without sudo or activating the system. ### Rebuild System ```bash -rebuild # Alias for: sudo nixos-rebuild switch --flake ~/.config/nixos +sudo nixos-rebuild switch --flake ~/.config/nixos ``` +Note: Claude Code cannot run this — it requires sudo. Ask the user to run it. + ### Format Nix Files ```bash nixfmt <file>.nix @@ -171,6 +173,6 @@ in 3. **User-level modules** contain pure home-manager configuration 4. **Hardware configuration files** are auto-generated - do not manually edit 5. **Use unstable overlay** when you need bleeding-edge versions of specific packages -6. **Verify changes** with `dry-rebuild` before committing +6. **Verify changes** with `nix build` (see above) before committing 7. **Format code** with nixfmt before committing -8. **Commit messages** should be a single short sentence — no body, no bullet points, no co-author line +7. **Commit messages** should be a single short sentence — no body, no bullet points, no co-author line |
