diff options
author | aszlig <aszlig@redmoonstudios.org> | 2015-04-13 00:09:00 +0200 |
---|---|---|
committer | aszlig <aszlig@redmoonstudios.org> | 2015-04-13 00:09:00 +0200 |
commit | 3a4fd0bfc6fb34a496708ee95891acb1648eedde (patch) | |
tree | f9fbf5ff3af833188faa5f5ecb992c0c3ea5407c /nixos | |
parent | 65e569cc37a52dd6476469df1e53e669acfaf508 (diff) | |
download | nixlib-3a4fd0bfc6fb34a496708ee95891acb1648eedde.tar nixlib-3a4fd0bfc6fb34a496708ee95891acb1648eedde.tar.gz nixlib-3a4fd0bfc6fb34a496708ee95891acb1648eedde.tar.bz2 nixlib-3a4fd0bfc6fb34a496708ee95891acb1648eedde.tar.lz nixlib-3a4fd0bfc6fb34a496708ee95891acb1648eedde.tar.xz nixlib-3a4fd0bfc6fb34a496708ee95891acb1648eedde.tar.zst nixlib-3a4fd0bfc6fb34a496708ee95891acb1648eedde.zip |
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 <aszlig@redmoonstudios.org>
Diffstat (limited to 'nixos')
-rw-r--r-- | nixos/modules/installer/tools/nixos-rebuild.sh | 4 |
1 files changed, 2 insertions, 2 deletions
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 |