mirror of
https://github.com/nix-community/nix-direnv.git
synced 2025-11-08 19:46:11 +01:00
Update README.md with nix.conf changes needed for persistent derivations
It appears that the derivations produced by nix-direnv are removed when running nix's garbage collection. Troubleshooting this issue led me to a git issue in the NixOS/nix repo [1]. Enabling both `keep-derivations` and `keep-outputs` worked for me as recommended, and now nix-direnv is working. [1]: https://github.com/NixOS/nix/issues/2208
This commit is contained in:
parent
5a91446000
commit
796db38742
1 changed files with 7 additions and 0 deletions
|
|
@ -20,3 +20,10 @@ Then source the direnvrc from this repository in your own `.direnvrc`
|
||||||
# put this in ~/.direnvrc
|
# put this in ~/.direnvrc
|
||||||
source $HOME/.nix-direnv/direnvrc
|
source $HOME/.nix-direnv/direnvrc
|
||||||
```
|
```
|
||||||
|
|
||||||
|
For derivations to persist garbage collection, set the following in nix.conf:
|
||||||
|
|
||||||
|
```
|
||||||
|
keep-derivations = true
|
||||||
|
keep-outputs = true
|
||||||
|
```
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue