treewide: switch to channels.nixos.org

This is a follow-up for #460057 to completely remove all mentions of nixos.org/channels/.

The following command was used to generate this change:

```
find . -type f -exec sed -i 's|nixos.org/channels/|channels.nixos.org/|g' {} +
```
This commit is contained in:
Tom Herbers 2025-11-17 23:38:20 +01:00
parent 7f7401542e
commit c9dc62eda1
No known key found for this signature in database
GPG key ID: 841A5B0DCEDA6192
8 changed files with 9 additions and 9 deletions

View file

@ -1,7 +1,7 @@
#!/usr/bin/env bash
set -e
: ${NIXOS_CHANNELS:=https://nixos.org/channels/}
: ${NIXOS_CHANNELS:=https://channels.nixos.org/}
: ${CHANNELS_NAMESPACE:=refs/heads/channels/}
# List all channels which are currently in the repository which we would

View file

@ -37,7 +37,7 @@ nixos-unstable unless explicitly configured to do so.
imports = [
# Use postgresql service from nixos-unstable channel.
# sudo nix-channel --add https://nixos.org/channels/nixos-unstable nixos-unstable
# sudo nix-channel --add https://channels.nixos.org/nixos-unstable nixos-unstable
<nixos-unstable/nixos/modules/services/databases/postgresql.nix>
];

View file

@ -35,14 +35,14 @@ The first steps to all these are the same:
```ShellSession
$ nix-channel --list
nixpkgs https://nixos.org/channels/nixpkgs-unstable
nixpkgs https://channels.nixos.org/nixpkgs-unstable
```
As that channel gets released without running the NixOS tests, it
will be safer to use the `nixos-*` channels instead:
```ShellSession
$ nix-channel --add https://nixos.org/channels/nixos-<version> nixpkgs
$ nix-channel --add https://channels.nixos.org/nixos-<version> nixpkgs
```
Where `<version>` corresponds to the latest version available on [channels.nixos.org](https://channels.nixos.org/).

View file

@ -39,7 +39,7 @@ Notable changes and additions for 18.09 include:
For example
```ShellSession
$ nix-channel --add https://nixos.org/channels/nixpkgs-unstable nixpkgsunstable
$ nix-channel --add https://channels.nixos.org/nixpkgs-unstable nixpkgsunstable
$ nix-channel --update
$ nix-build '<nixpkgsunstable>' -A gitFull
$ nix run -f '<nixpkgsunstable>' gitFull

View file

@ -318,7 +318,7 @@ in
''${pkgs.nix}/bin/nix-env -i ''${concatStringsSep " " (with pkgs; [ nix cacert git openssh ])}
''${pkgs.nix}/bin/nix-channel --add https://nixos.org/channels/nixpkgs-unstable
''${pkgs.nix}/bin/nix-channel --add https://channels.nixos.org/nixpkgs-unstable
''${pkgs.nix}/bin/nix-channel --update nixpkgs
''';
environmentVariables = {

View file

@ -52,7 +52,7 @@ in
channel = lib.mkOption {
type = lib.types.nullOr lib.types.str;
default = null;
example = "https://nixos.org/channels/nixos-14.12-small";
example = "https://channels.nixos.org/nixos-14.12-small";
description = ''
The URI of the NixOS channel to use for automatic
upgrades. By default, this is the channel set using

View file

@ -17,7 +17,7 @@
assert machine.succeed("cat /root/.nix-channels") == "${nodes.machine.system.defaultChannel} nixos\n"
nixpkgs_unstable_channel = "https://nixos.org/channels/nixpkgs-unstable nixpkgs"
nixpkgs_unstable_channel = "https://channels.nixos.org/nixpkgs-unstable nixpkgs"
machine.succeed(f"echo '{nixpkgs_unstable_channel}' > /root/.nix-channels")
machine.reboot()

View file

@ -123,7 +123,7 @@ in
inherit image;
sshPublicKey = snakeOilPublicKey;
# ### https://nixos.org/channels/nixos-unstable nixos
# ### https://channels.nixos.org/nixos-unstable nixos
userData = ''
{ pkgs, ... }: