Force update all channels before upgrade
This commit is contained in:
parent
edda283cf0
commit
5583817493
@ -60,6 +60,10 @@ in {
|
||||
};
|
||||
};
|
||||
|
||||
# force update all channels
|
||||
systemd.services.nixos-upgrade.serviceConfig.ExecStartPre =
|
||||
"${pkgs.nix}/bin/nix-channel --update";
|
||||
|
||||
systemd.services.nixos-upgrade.serviceConfig.ExecStartPost = pkgs.writeScript "post-upgrade-check" ''
|
||||
#!${pkgs.stdenv.shell}
|
||||
current=$(readlink -f /run/current-system/kernel)
|
||||
|
Loading…
Reference in New Issue
Block a user