2023-04-26 16:07:26 +03:00
|
|
|
## Channels
|
2023-02-17 19:57:15 +02:00
|
|
|
|
2023-04-26 11:57:41 +03:00
|
|
|
A directory containing symlinks to Nix channels, managed by [`nix-channel`]:
|
2023-02-17 19:57:15 +02:00
|
|
|
|
|
|
|
- `$XDG_STATE_HOME/nix/profiles/channels` for regular users
|
2023-04-26 11:56:35 +03:00
|
|
|
- `$NIX_STATE_DIR/profiles/per-user/root/channels` for `root`
|
2023-02-17 19:57:15 +02:00
|
|
|
|
2023-04-27 12:56:52 +03:00
|
|
|
[`nix-channel`] uses a [profile](@docroot@/command-ref/files/profiles.md) to store channels.
|
2023-02-17 19:57:15 +02:00
|
|
|
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
|