1
0
Fork 0

Build(flake): Enable direnv integration

[Direnv](1) in combination with some sort of [Nix integration](2)
— in this case [Nix-direnv](3) — allows for reproducible development
environments (and allows uncluttering the default PATH, as cargo and
other development tools are no longer needed in it).

Setting it up is rather easy, just see [Nix-direnv's install
instructions](4).

[1]: https://github.com/direnv/direnv
[2]: https://github.com/direnv/direnv/wiki/Nix
[3]: https://github.com/nix-community/nix-direnv
[4]: https://github.com/nix-community/nix-direnv#installation
This commit is contained in:
Benedikt Peetz 2023-07-09 07:15:20 +02:00
parent f768d214da
commit cc602b25ce
Signed by: bpeetz
GPG Key ID: A5E94010C3A642AD
2 changed files with 12 additions and 1 deletions

7
.envrc Normal file
View File

@ -0,0 +1,7 @@
use flake || use nix
watch_file flake.nix
if on_git_branch; then
echo && git status --short --branch &&
echo && git fetch --verbose
fi

6
.gitignore vendored
View File

@ -1,6 +1,10 @@
target/
userdata/
trinitrix.log
# build
/target
/result
# IDE stuff
.idea
.direnv