Browse Source

Force update all channels before upgrade

master
dump_stack() 9 months ago
parent
commit
5583817493
Signed by: Mikhail Klementev <blame@dumpstack.io> GPG Key ID: BE44DA8C062D87DC
1 changed files with 4 additions and 0 deletions
  1. 4
    0
      configuration.nix

+ 4
- 0
configuration.nix 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)

Loading…
Cancel
Save