Update channel URLs

This commit is contained in:
Eelco Dolstra 2012-11-12 09:18:59 +01:00
parent d5aae18587
commit 08e6c0cb7c
5 changed files with 11 additions and 9 deletions

View File

@ -322,7 +322,7 @@ packages.</para>
some reason this is not the case, just do
<screen>
$ nix-channel --add http://nixos.org/releases/nixos/channels/nixos-unstable
$ nix-channel --add http://nixos.org/channels/nixos-unstable
</screen>
You can then upgrade NixOS to the latest version in the channel by

View File

@ -52,7 +52,7 @@ m.run_command("mkdir -p /mnt")
m.run_command("mount {0} /mnt".format(device))
m.run_command("touch /mnt/.ebs")
m.run_command("mkdir -p /mnt/etc/nixos")
m.run_command("nix-channel --add http://nixos.org/releases/nixos/channels/nixos-unstable")
m.run_command("nix-channel --add http://nixos.org/channels/nixos-unstable")
m.run_command("nix-channel --update")
m.run_command("nixos-rebuild switch")
version = m.run_command("nixos-version", capture_stdout=True).replace('"', '').rstrip()

View File

@ -84,8 +84,9 @@ in
{
options = {
# FIXME: remove this option once we're using Nix 1.2.
installer.nixosURL = pkgs.lib.mkOption {
default = http://nixos.org/releases/nixos/channels/nixos-unstable;
default = http://nixos.org/channels/nixos-unstable;
example = http://nixos.org/releases/nixos/nixos-0.1pre1234;
description = ''
URL of the Nixpkgs distribution to use when building the
@ -93,11 +94,12 @@ in
'';
};
# FIXME: idem.
installer.manifests = pkgs.lib.mkOption {
default = [ http://nixos.org/releases/nixos/channels/nixos-unstable/MANIFEST ];
default = [ http://nixos.org/channels/nixos-unstable/MANIFEST ];
example =
[ http://nixos.org/releases/nixpkgs/channels/nixpkgs-unstable/MANIFEST
http://nixos.org/releases/nixos/channels/nixos-stable/MANIFEST
[ http://nixos.org/channels/nixpkgs-unstable/MANIFEST
http://nixos.org/channels/nixos-stable/MANIFEST
];
description = ''
URLs of manifests to be downloaded when you run

View File

@ -87,7 +87,7 @@ fi
# Subscribe the root user to the NixOS channel by default.
if [ "$USER" = root -a ! -e $HOME/.nix-channels ]; then
echo "http://nixos.org/releases/nixos/channels/nixos-unstable nixos" > $HOME/.nix-channels
echo "http://nixos.org/channels/nixos-unstable nixos" > $HOME/.nix-channels
fi
# Create the per-user garbage collector roots directory.

View File

@ -79,7 +79,7 @@ let
{ services.httpd.enable = true;
services.httpd.adminAddr = "foo@example.org";
services.httpd.servedDirs = singleton
{ urlPath = "/releases/nixos/channels/nixos-unstable";
{ urlPath = "/channels/nixos-unstable";
dir = "/tmp/channel";
};
@ -114,7 +114,7 @@ let
$webserver->succeed("mkdir /tmp/channel");
$webserver->succeed(
"nix-push file:///tmp/channel " .
"http://nixos.org/releases/nixos/channels/nixos-unstable " .
"http://nixos.org/channels/nixos-unstable " .
"file:///tmp/channel/MANIFEST ${toString channelContents} >&2");
''}