From a90d9c33d592afec8bbec9cdc24c0446daab6e3a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torjus=20H=C3=A5kestad?= Date: Sat, 7 Feb 2026 15:39:56 +0100 Subject: [PATCH] CLAUDE.md: prefer nix develop -c for devshell commands Co-Authored-By: Claude Opus 4.5 --- CLAUDE.md | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/CLAUDE.md b/CLAUDE.md index 809fdb7..c5a6912 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -61,10 +61,21 @@ Do not run `nix flake update`. Should only be done manually by user. ### Development Environment ```bash -# Enter development shell (provides ansible, python3) +# Enter development shell nix develop ``` +The devshell provides: `ansible`, `tofu` (OpenTofu), `vault` (OpenBao CLI), `create-host`, and `homelab-deploy`. + +**Important:** When suggesting commands that use devshell tools, always use `nix develop -c ` syntax rather than assuming the user is already in a devshell. For example: +```bash +# Good - works regardless of current shell +nix develop -c tofu plan + +# Avoid - requires user to be in devshell +tofu plan +``` + ### Secrets Management Secrets are managed by OpenBao (Vault) using AppRole authentication. Most hosts use the