1
Fork 0
mirror of https://github.com/RGBCube/alejandra synced 2025-07-30 12:07:46 +00:00

chore: add support for .direnv

- Loads the devshell more conveniently
This commit is contained in:
David Arnold 2022-01-29 19:26:26 -05:00
parent 5363d45941
commit 6b857fa34e
No known key found for this signature in database
GPG key ID: 0318D822BAC965CC
2 changed files with 12 additions and 0 deletions

11
.envrc Normal file
View file

@ -0,0 +1,11 @@
#! /bin/sh
# reload when these files change
watch_file flake.nix
watch_file flake.lock
{
# shell gc root dir
mkdir -p "$(direnv_layout_dir)"
eval "$(nix print-dev-env --no-update-lock-file --no-write-lock-file --profile $(direnv_layout_dir)/flake-profile)"
}

1
.gitignore vendored
View file

@ -1,3 +1,4 @@
/.direnv
/result*
/target/
/tarpaulin*