mirror of
https://github.com/NixOS/nix.git
synced 2025-12-22 17:01:08 +01:00
Document user files of nix
This commit is contained in:
parent
946fd29422
commit
8a93b5a551
14 changed files with 390 additions and 164 deletions
26
doc/manual/src/command-ref/files/channels.md
Normal file
26
doc/manual/src/command-ref/files/channels.md
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
# Channels
|
||||
|
||||
A directory containing symlinks to Nix channels, managed by [`nix-channel`].
|
||||
|
||||
- `$NIX_STATE_DIR/profiles/per-user/root/channels` for `root`
|
||||
- `$XDG_STATE_HOME/nix/profiles/channels` for regular users
|
||||
|
||||
[`nix-channel`] uses a [profile](@docroot@/command-ref/files/user-profiles.md) to store channels.
|
||||
This profile contains symlinks to the contents of those channels.
|
||||
|
||||
## Subscribed channels
|
||||
|
||||
The list of subscribed channels is stored in
|
||||
|
||||
- `~/.nix-channels`
|
||||
- `$XDG_STATE_HOME/nix/channels` if [`use-xdg-base-directories`] is set to `true`
|
||||
|
||||
in the following format:
|
||||
|
||||
```
|
||||
<url> <name>
|
||||
...
|
||||
```
|
||||
|
||||
[`nix-channel`]: @docroot@/command-ref/nix-channel.md
|
||||
[`use-xdg-base-directories`]: @docroot@/command-ref/conf-file.md#conf-use-xdg-base-directories
|
||||
Loading…
Add table
Add a link
Reference in a new issue