drop keep-outputs/keep-derivations from README

This commit is contained in:
Jörg Thalheim 2023-09-09 16:28:34 +02:00
parent 17d5f206ee
commit 6642769872

View file

@ -108,22 +108,6 @@ other available options are:
}
```
NixOS 22.11 or before requires:
```Nix
{ pkgs, ... }: {
environment.systemPackages = with pkgs; [ direnv nix-direnv ];
# nix options for derivations to persist garbage collection
nix.settings = {
keep-outputs = true;
keep-derivations = true;
};
environment.pathsToLink = [
"/share/nix-direnv"
];
}
```
and sourcing the `direnvrc` from this repository in your own `$HOME/.config/direnv/direnvrc`
```bash
@ -150,9 +134,6 @@ Then add nix-direnv to `$HOME/.config/direnv/direnvrc`:
source $HOME/.nix-profile/share/nix-direnv/direnvrc
```
You also need to set `keep-outputs` and `keep-derivations` to nix.conf
as described in the installation via home-manager section.
</details>
<details>
@ -172,9 +153,6 @@ Then add nix-direnv to `$HOME/.config/direnv/direnvrc`:
source $HOME/.nix-profile/share/nix-direnv/direnvrc
```
You also need to set `keep-outputs` and `keep-derivations` to nix.conf
as described in the installation via home-manager section.
</details>
<details>
@ -191,9 +169,6 @@ and then source the direnvrc from this repository in your own
source $HOME/nix-direnv/direnvrc
```
You also need to set `keep-outputs` and `keep-derivations` to nix.conf
as described in the installation via home-manager section.
</details>
## Usage example