Full Rust dev shell + CI:
nix flake init -t github:data-cartel/rust.nixCI only — drops just .github/workflows/ci.yaml into a project that
already has a flake-based dev shell:
nix flake init -t github:data-cartel/rust.nix#ciNix-only — drops just flake.nix and .envrc into an existing Rust
project, leaving Cargo.toml and src/ alone. The flake consumes
data-cartel/rust.nix as an input and re-exposes its dev shell:
nix flake init -t github:data-cartel/rust.nix#nixInstall Nix
curl --proto '=https' --tlsv1.2 -sSf -L https://install.determinate.systems/nix | sh -s -- installInstall Direnv
nix -v flake install nixpkgs#direnvHook Direnv to your shell, e.g.
# For bash
echo 'eval "$(direnv hook bash)"' >> ~/.bashrc
source ~/.bashrc
# For zsh
echo 'eval "$(direnv hook zsh)"' >> ~/.zshrc
source ~/.zshrcEnable direnv for the local copy of the repo
direnv allowGet Rusty!