mirror of
https://github.com/nix-community/nix-direnv.git
synced 2025-11-29 05:31:09 +01:00
Merge pull request #294 from kubukoz/patch-1
Add `nix profile` installation guide
This commit is contained in:
commit
068eb8d5ca
1 changed files with 24 additions and 2 deletions
26
README.md
26
README.md
|
|
@ -131,9 +131,9 @@ source /run/current-system/sw/share/nix-direnv/direnvrc
|
|||
</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:
|
||||
|
||||
|
|
@ -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
|
||||
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>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue