Skip to content

Commit

Permalink
Merge pull request NixOS#8114 from obsidiansystems/docs-profiles-dirs
Browse files Browse the repository at this point in the history
Fix more profile dirs in docs
  • Loading branch information
Ericson2314 committed Mar 27, 2023
2 parents 5e3f855 + 8df6f7b commit 56dc6ed
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions doc/manual/src/command-ref/nix-channel.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ $ nix-instantiate --eval -E '(import <nixpkgs> {}).lib.version'

# Files

- `/nix/var/nix/profiles/per-user/username/channels`\
- `${XDG_STATE_HOME-$HOME/.local/state}/nix/profiles/channels`\
`nix-channel` uses a `nix-env` profile to keep track of previous
versions of the subscribed channels. Every time you run `nix-channel
--update`, a new channel generation (that is, a symlink to the
Expand All @@ -79,7 +79,7 @@ $ nix-instantiate --eval -E '(import <nixpkgs> {}).lib.version'

- `~/.nix-defexpr/channels`\
This is a symlink to
`/nix/var/nix/profiles/per-user/username/channels`. It ensures that
`${XDG_STATE_HOME-$HOME/.local/state}/nix/profiles/channels`. It ensures that
`nix-env` can find your channels. In a multi-user installation, you
may also have `~/.nix-defexpr/channels_root`, which links to the
channels of the root user.
Expand Down
2 changes: 1 addition & 1 deletion doc/manual/src/command-ref/nix-store.md
Original file line number Diff line number Diff line change
Expand Up @@ -493,7 +493,7 @@ depends on `svn`:
$ nix-store -q --roots $(which svn)
/nix/var/nix/profiles/default-81-link
/nix/var/nix/profiles/default-82-link
/nix/var/nix/profiles/per-user/eelco/profile-97-link
/home/eelco/.local/state/nix/profiles/profile-97-link
```

# Operation `--add`
Expand Down
2 changes: 1 addition & 1 deletion src/nix/upgrade-nix.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ R""(
* Upgrade Nix in a specific profile:

```console
# nix upgrade-nix -p /nix/var/nix/profiles/per-user/alice/profile
# nix upgrade-nix -p ~alice/.local/state/nix/profiles/profile
```

# Description
Expand Down

0 comments on commit 56dc6ed

Please sign in to comment.