blob: 6ef2527e5b4cc2f1f4c59926a34cdf08ee618fa6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
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
|