From 8ef9e530eff52c751389162972f28ef6a558b2b9 Mon Sep 17 00:00:00 2001 From: Christian Date: Sun, 24 May 2026 08:19:20 -0500 Subject: Remove dry-rebuild alias references from CLAUDE.md --- CLAUDE.md | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/CLAUDE.md b/CLAUDE.md index 713c793..c2b3bed 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -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 .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 -- cgit v1.2.3