Sign inSign up

matthisk/nix-direnv-kit

By matthisk

•Updated 1 day ago

Sandbox Kit
0

58

matthisk/nix-direnv-kit repository overview

Digest

sha256:0578e81728d9…

Size

67.3 MB

Schema

v3

Pushed

1 day ago

Specificationspec.yaml

MIXIN

Single-user Nix (flakes enabled), direnv and nix-direnv, wired so that the workspace .envrc is loaded automatically: a direnv hook for interactive bash, and a BASH_ENV / CLAUDE_ENV_FILE hook so agent command shells get the same environment. nix-direnv state lives in the sandbox, not in the host-shared .direnv directory.


Arguments
NameRequiredDefaultDescription
autoAllowOptionaltrue

Trust every .envrc under the sandbox workspace (direnv whitelist), so no `direnv allow` is needed. Set to "false" to approve .envrc files by hand.

Options: true, false
nixpkgsRefOptionalnixos-26.05

nixpkgs branch, tag or commit that nix, direnv and nix-direnv are built from (github:NixOS/nixpkgs/<ref>). Only affects the installed tools, not the project's flake inputs.

prewarmOptionaltrue

On every sandbox start, evaluate the workspace .envrc in the background so the first agent command does not wait for the flake to build.

Options: true, false

CapabilitiesExpand a row to see its full configuration. See the full spec for the complete descriptor.
TypeRequiredDescription
com.docker.sandbox/network-policy@1Required—
com.docker.sandbox/lifecycle@1Required—
com.docker.sandbox/agent-context@1Optional—
com.docker.sandbox/agent-context@2Optional—

Apply this mixin to a sandbox

sbx run <agent> --kit matthisk/nix-direnv-kit:0.1.0

Make sure you have docker sbx installed

Run the following command to install sbx on your machine.

macOS
brew install docker/tap/sbx
Windows
winget install Docker.sbx
Learn more about docker sbx⁠
No overview available
This repository doesn't have an overview