Make nix-direnv actually work

I somehow forgot to add the `.direnvrc` to homeshick. Now `nix-shell`s
created with direnv are added as gc roots.
This commit is contained in:
Simon Bruder 2020-09-01 10:11:26 +02:00
parent 54f6d6ad15
commit f33bafecc8
No known key found for this signature in database
GPG key ID: 6F03E0000CC5B62F
4 changed files with 3 additions and 5 deletions

3
.gitmodules vendored
View file

@ -19,6 +19,3 @@
[submodule "zsh-nix-shell"]
path = zsh-nix-shell
url = https://github.com/chisui/zsh-nix-shell
[submodule "nix-direnv"]
path = nix-direnv
url = https://github.com/nix-community/nix-direnv

3
home/.direnvrc Normal file
View file

@ -0,0 +1,3 @@
if [ -f /run/current-system/sw/share/nix-direnv/direnvrc ]; then
source /run/current-system/sw/share/nix-direnv/direnvrc
fi

View file

@ -1 +0,0 @@
../nix-direnv

@ -1 +0,0 @@
Subproject commit 300258e2bded28c284451f4fac8475b2240b46f6