Merge pull request #294 from kubukoz/patch-1

Add `nix profile` installation guide
This commit is contained in:
Jörg Thalheim 2023-01-31 17:00:25 +00:00 committed by GitHub
commit 068eb8d5ca
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -131,9 +131,9 @@ source /run/current-system/sw/share/nix-direnv/direnvrc
</details> </details>
<details> <details>
<summary>With nix-env</summary> <summary>With `nix-env`</summary>
### With nix-env ### With `nix-env`
As **non-root** user do the following: As **non-root** user do the following:
@ -150,6 +150,28 @@ source $HOME/.nix-profile/share/nix-direnv/direnvrc
You also need to set `keep-outputs` and `keep-derivations` to nix.conf You also need to set `keep-outputs` and `keep-derivations` to nix.conf
as described in the installation via home-manager section. as described in the installation via home-manager section.
</details>
<details>
<summary>With `nix profile`</summary>
### With `nix profile`
As **non-root** user do the following:
```shell
nix profile install nixpkgs#nix-direnv
```
Then add nix-direnv to `$HOME/.direnvrc`:
```bash
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>
<details> <details>