1
0

Force update all channels before upgrade

This commit is contained in:
dump_stack() 2019-08-02 14:58:37 +00:00
parent edda283cf0
commit 5583817493
Signed by: dump_stack
GPG Key ID: BE44DA8C062D87DC

View File

@ -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)