Skip to content

[CHORE] Add Nix flake devShell for reproducible host tooling #227

Closed

Description

@gerchowl

Chore Type

Configuration change

Description

Host development setup relies on just init / requirements.yaml which installs tools imperatively and has no way to guarantee PATH availability for all consumers (pre-commit hooks, Claude Code, CI-like local runs).

Add a flake.nix with a devShell that declares all host-side tools from requirements.yaml. Combined with direnv (.envrc with use flake), every maintainer gets identical tooling with zero manual steps.

Acceptance Criteria

  • flake.nix with devShell containing: just, uv, gh, git, jq, tmux, hadolint, taplo, shellcheck, nodejs (for bats/devcontainer CLI)
  • .envrc with use flake for automatic activation via direnv
  • nix develop provides all tools on PATH
  • Pre-commit hooks pass without manual installs
  • Document in CONTRIBUTE.md as the recommended setup method

Implementation Notes

  • User already has Nix + Home Manager in ~/dotfiles/
  • requirements.yaml stays as SSoT for tool list and container installs
  • flake.nix is the host-side complement
  • Keep just init as fallback for non-Nix users

Related Issues

Unblocks #226 (taplo binary not found locally)

Priority

Medium

Changelog Category

No changelog needed

Activity

  1. added
    chore
    area:workflow
    effort:small
    on Mar 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:workflowchoreeffort:small

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions