Skip to content

Commit 08a8bae

Browse files
authored
Merge pull request #14518 from roberth/channel-subdomain
Change channel URLs to channels.nixos.org subdomain
2 parents 479b6b7 + f715992 commit 08a8bae

File tree

8 files changed

+18
-9
lines changed

8 files changed

+18
-9
lines changed
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
---
2+
synopsis: Channel URLs migrated to channels.nixos.org subdomain
3+
prs: [14518]
4+
issues: [14517]
5+
---
6+
7+
Channel URLs have been updated from `https://nixos.org/channels/` to `https://channels.nixos.org/` throughout Nix.
8+
9+
The subdomain provides better reliability with IPv6 support and improved CDN distribution. The old domain apex (`nixos.org/channels/`) currently redirects to the new location but may be deprecated in the future.

doc/manual/source/command-ref/nix-channel.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
Channels are a mechanism for referencing remote Nix expressions and conveniently retrieving their latest version.
1212

1313
The moving parts of channels are:
14-
- The official channels listed at <https://nixos.org/channels>
14+
- The official channels listed at <https://channels.nixos.org>
1515
- The user-specific list of [subscribed channels](#subscribed-channels)
1616
- The [downloaded channel contents](#channels)
1717
- The [Nix expression search path](@docroot@/command-ref/conf-file.md#conf-nix-path), set with the [`-I` option](#opt-I) or the [`NIX_PATH` environment variable](#env-NIX_PATH)
@@ -88,9 +88,9 @@ This command has the following operations:
8888
Subscribe to the Nixpkgs channel and run `hello` from the GNU Hello package:
8989

9090
```console
91-
$ nix-channel --add https://nixos.org/channels/nixpkgs-unstable
91+
$ nix-channel --add https://channels.nixos.org/nixpkgs-unstable
9292
$ nix-channel --list
93-
nixpkgs https://nixos.org/channels/nixpkgs
93+
nixpkgs https://channels.nixos.org/nixpkgs
9494
$ nix-channel --update
9595
$ nix-shell -p hello --run hello
9696
hello

doc/manual/source/release-notes/rl-2.0.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -358,7 +358,7 @@ This release has the following new features:
358358
they are needed for evaluation.
359359

360360
- You can now use `channel:` as a short-hand for
361-
<https://nixos.org/channels//nixexprs.tar.xz>. For example,
361+
<https://nixos.org/channels//nixexprs.tar.xz> [now <https://channels.nixos.org//nixexprs.tar.xz>]. For example,
362362
`nix-build channel:nixos-15.09 -A hello` will build the GNU Hello
363363
package from the `nixos-15.09` channel. In the future, this may
364364
use Git to fetch updates more efficiently.

docker.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
tag ? "latest",
1111
bundleNixpkgs ? true,
1212
channelName ? "nixpkgs",
13-
channelURL ? "https://nixos.org/channels/nixpkgs-unstable",
13+
channelURL ? "https://channels.nixos.org/nixpkgs-unstable",
1414
extraPkgs ? [ ],
1515
maxLayers ? 70,
1616
nixConf ? { },

scripts/install-multi-user.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -714,7 +714,7 @@ EOF
714714

715715
place_channel_configuration() {
716716
if [ -z "${NIX_INSTALLER_NO_CHANNEL_ADD:-}" ]; then
717-
echo "https://nixos.org/channels/nixpkgs-unstable nixpkgs" > "$SCRATCH/.nix-channels"
717+
echo "https://channels.nixos.org/nixpkgs-unstable nixpkgs" > "$SCRATCH/.nix-channels"
718718
_sudo "to set up the default system channel (part 1)" \
719719
install -m 0644 "$SCRATCH/.nix-channels" "$ROOT_HOME/.nix-channels"
720720
fi

scripts/install-nix-from-tarball.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ fi
213213
# Subscribe the user to the Nixpkgs channel and fetch it.
214214
if [ -z "$NIX_INSTALLER_NO_CHANNEL_ADD" ]; then
215215
if ! "$nix/bin/nix-channel" --list | grep -q "^nixpkgs "; then
216-
"$nix/bin/nix-channel" --add https://nixos.org/channels/nixpkgs-unstable
216+
"$nix/bin/nix-channel" --add https://channels.nixos.org/nixpkgs-unstable
217217
fi
218218
if [ -z "$_NIX_INSTALLER_TEST" ]; then
219219
if ! "$nix/bin/nix-channel" --update nixpkgs; then

src/libexpr/eval-settings.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ bool EvalSettings::isPseudoUrl(std::string_view s)
9292
std::string EvalSettings::resolvePseudoUrl(std::string_view url)
9393
{
9494
if (hasPrefix(url, "channel:"))
95-
return "https://nixos.org/channels/" + std::string(url.substr(8)) + "/nixexprs.tar.xz";
95+
return "https://channels.nixos.org/" + std::string(url.substr(8)) + "/nixexprs.tar.xz";
9696
else
9797
return std::string(url);
9898
}

src/libexpr/primops.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2234,7 +2234,7 @@ static RegisterPrimOp primop_findFile(
22342234
> - ```
22352235
> {
22362236
> prefix = "nixpkgs";
2237-
> path = "https://nixos.org/channels/nixos-unstable/nixexprs.tar.xz";
2237+
> path = "https://channels.nixos.org/nixos-unstable/nixexprs.tar.xz";
22382238
> }
22392239
> ```
22402240

0 commit comments

Comments
 (0)