From 3a4fd0bfc6fb34a496708ee95891acb1648eedde Mon Sep 17 00:00:00 2001 From: aszlig Date: Mon, 13 Apr 2015 00:09:00 +0200 Subject: nixos-rebuild: Update all channels of user root. Should make it even easier to use custom channels, because whenever the user does a "nixos-rebuild --upgrade", it will also upgrade possibly used ("used" as in referenced in configuration.nix) channels besides "nixos". And if you also ship a channel tied to a particular version of nixpkgs or even remove the "nixos" channels, you won't run into unexpected situations where the system is not updating your custom channels. Signed-off-by: aszlig --- nixos/modules/installer/tools/nixos-rebuild.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'nixos') diff --git a/nixos/modules/installer/tools/nixos-rebuild.sh b/nixos/modules/installer/tools/nixos-rebuild.sh index 1d6df8cb3f71..61b1508abdfc 100644 --- a/nixos/modules/installer/tools/nixos-rebuild.sh +++ b/nixos/modules/installer/tools/nixos-rebuild.sh @@ -93,9 +93,9 @@ if [ "$action" = switch -o "$action" = boot -o "$action" = test ]; then fi -# If ‘--upgrade’ is given, run ‘nix-channel --update nixos’. +# If ‘--upgrade’ is given, run ‘nix-channel --update’. if [ -n "$upgrade" -a -z "$_NIXOS_REBUILD_REEXEC" ]; then - nix-channel --update nixos + nix-channel --update fi # Make sure that we use the Nix package we depend on, not something -- cgit 1.4.1