From 55838174936152d34e9d1b419f73768a9bb8904f Mon Sep 17 00:00:00 2001 From: Mikhail Klementev Date: Fri, 2 Aug 2019 14:58:37 +0000 Subject: [PATCH] Force update all channels before upgrade --- configuration.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/configuration.nix b/configuration.nix index 22d157c..cb10954 100644 --- a/configuration.nix +++ b/configuration.nix @@ -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)