From b706994b5359678bce96dc76148925fae26fb4a1 Mon Sep 17 00:00:00 2001 From: Mikhail Klementev Date: Sun, 4 Aug 2019 09:11:45 +0000 Subject: [PATCH] Force run nixos-upgrade if device was offline --- configuration.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/configuration.nix b/configuration.nix index 9bfbb7c..c7e48ab 100644 --- a/configuration.nix +++ b/configuration.nix @@ -55,6 +55,9 @@ in { systemd.services.nixos-upgrade.serviceConfig.ExecStartPre = "${pkgs.nix}/bin/nix-channel --update"; + # force run if device was offline + systemd.timers.nixos-upgrade.timerConfig.Persistent = true; + system.stateVersion = "19.03"; system.autoUpgrade.enable = true;