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:
parent
54f6d6ad15
commit
f33bafecc8
3
.gitmodules
vendored
3
.gitmodules
vendored
|
@ -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
3
home/.direnvrc
Normal 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
|
|
@ -1 +0,0 @@
|
|||
../nix-direnv
|
|
@ -1 +0,0 @@
|
|||
Subproject commit 300258e2bded28c284451f4fac8475b2240b46f6
|
Reference in a new issue