Skip to content

chore: add Nix flake devShell for reproducible host tooling - #228

Merged
gerchowl merged 2 commits into
devfrom
chore/227-nix-devshell
Mar 7, 2026
Merged

gerchowl merged 2 commits into
devfrom
chore/227-nix-devshell

Conversation

@gerchowl

@gerchowl gerchowl commented Mar 6, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Add flake.nix with devShell providing all host tools: just, uv, gh, hadolint, taplo, shellcheck, jq, tmux, nodejs, podman
  • Add .envrc (use flake) for automatic direnv activation
  • Exclude .envrc from shellcheck (direnv file, not a shell script)
  • All pre-commit hooks pass inside nix develop with zero manual installs

Test plan

  • nix develop --command bash -c "which just uv gh hadolint taplo shellcheck" — all found
  • Pre-commit hooks pass inside nix develop
  • direnv allow auto-activates the environment

Refs: #227

gerchowl added 2 commits March 6, 2026 20:13
Add flake.nix with devShell containing all host-side tools from
requirements.yaml. Add .envrc for direnv auto-activation.
Exclude .envrc from shellcheck (direnv file, not a script).

Refs: #227
@gerchowl
gerchowl merged commit 91f1441 into dev Mar 7, 2026
10 checks passed
@gerchowl
gerchowl deleted the chore/227-nix-devshell branch March 7, 2026 13:16
@gerchowl

gerchowl commented Mar 7, 2026

Copy link
Copy Markdown
Contributor Author

@c-vigo Please review — this adds a Nix flake devShell so all host-side dependencies (just, uv, gh, hadolint, taplo, shellcheck, etc.) are declared and reproducible. This was prompted by the missing/inconsistent tool versions across dev machines that kept causing pre-commit failures and onboarding friction.

@c-vigo

c-vigo commented Mar 9, 2026

Copy link
Copy Markdown
Contributor

@c-vigo Please review — this adds a Nix flake devShell so all host-side dependencies (just, uv, gh, hadolint, taplo, shellcheck, etc.) are declared and reproducible. This was prompted by the missing/inconsistent tool versions across dev machines that kept causing pre-commit failures and onboarding friction.

How am I supposed to test? DO I need Nix available locally?

@gerchowl

Copy link
Copy Markdown
Contributor Author

y, Nix required

@c-vigo

c-vigo commented Mar 11, 2026

Copy link
Copy Markdown
Contributor

Tested, works fine, and very easy to enable!

Related: #255

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants