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)