nix: update all channels before auto-upgrade
Alan Pearce alan@alanpearce.eu
Tue, 19 May 2020 12:31:09 +0200
1 files changed, 2 insertions(+), 1 deletions(-)
M system/settings/configuration/nix.nix → system/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} ''; }; }