all repos — nixfiles @ 63dcecf0b94f1c1e39efa93655a86141aef3c24a

System and user configuration, managed by nix and home-manager

nix: update all channels before auto-upgrade
Alan Pearce alan@alanpearce.eu
Tue, 19 May 2020 12:31:09 +0200
commit

63dcecf0b94f1c1e39efa93655a86141aef3c24a

parent

69f5a373af817c0f1d1c138204b74cb10de5b917

1 files changed, 2 insertions(+), 1 deletions(-)

jump to
M system/settings/configuration/nix.nixsystem/settings/configuration/nix.nix
@@ -21,7 +21,8 @@ flags = [ "--max-jobs" "1" ];   };
   systemd.services.nixos-upgrade = {
     script = pkgs.lib.mkForce ''
-      ${config.system.build.nixos-rebuild}/bin/nixos-rebuild boot --no-build-output --upgrade ${toString config.system.autoUpgrade.flags}
+      ${pkgs.nix}/bin/nix-channel --update
+      ${config.system.build.nixos-rebuild}/bin/nixos-rebuild boot --no-build-output ${toString config.system.autoUpgrade.flags}
     '';
   };
 }