update description on how profiles work

adapt to the example listing
This commit is contained in:
Valentin Gagarin 2023-04-26 13:57:42 +02:00
parent 7770d82240
commit bb8e3b5d86

View file

@ -34,10 +34,9 @@ To migrate back to `nix-env` you can delete your current profile:
## Filesystem layout ## Filesystem layout
Profiles are versioned as follows. When using profile *path*, *path* Profiles are versioned as follows. When using a profile named *path*, *path* is a symlink to *path*`-`*N*`-link`, where *N* is the version of the profile.
is a symlink to *path*`-`*N*, where *N* is the current *version* of In turn, *path*`-`*N*`-link` is a symlink to a path in the Nix store.
the profile. In turn, *path*`-`*N* is a symlink to a path in the Nix For example:
store. For example:
```console ```console
$ ls -l ~alice/.local/state/nix/profiles/profile* $ ls -l ~alice/.local/state/nix/profiles/profile*