treewide: leverage direnv to automatically enter developer shell

Leverage direnv [1] to automatically enter the developer shell upon
entering the project directory after running 'direnv allow'.

[1]: https://direnv.net

Link: https://github.com/danth/stylix/pull/519
This commit is contained in:
NAHO 2024-08-21 17:16:56 +02:00
parent 703f49aaca
commit 6ef37ca6aa
No known key found for this signature in database
GPG key ID: 229CB671D09B95F5
3 changed files with 9 additions and 0 deletions

1
.envrc Normal file
View file

@ -0,0 +1 @@
use flake

1
.gitignore vendored
View file

@ -1,2 +1,3 @@
/.direnv/
result
result-*

View file

@ -5,3 +5,10 @@ To enter the developer shell, run:
```console
nix develop
```
To automatically enter the developer shell upon entering the project directory
with [`direnv`](https://direnv.net), run:
```console
direnv allow
```