From 63dcecf0b94f1c1e39efa93655a86141aef3c24a Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Tue, 19 May 2020 12:31:09 +0200 Subject: nix: update all channels before auto-upgrade --- system/settings/configuration/nix.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/system/settings/configuration/nix.nix b/system/settings/configuration/nix.nix index ff7ef82e..85e14e2c 100644 --- a/system/settings/configuration/nix.nix +++ b/system/settings/configuration/nix.nix @@ -21,7 +21,8 @@ }; 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} ''; }; } -- cgit 1.4.1