Force run nixos-upgrade if device was offline
This commit is contained in:
parent
7e7bf3110d
commit
b706994b53
@ -55,6 +55,9 @@ in {
|
|||||||
systemd.services.nixos-upgrade.serviceConfig.ExecStartPre =
|
systemd.services.nixos-upgrade.serviceConfig.ExecStartPre =
|
||||||
"${pkgs.nix}/bin/nix-channel --update";
|
"${pkgs.nix}/bin/nix-channel --update";
|
||||||
|
|
||||||
|
# force run if device was offline
|
||||||
|
systemd.timers.nixos-upgrade.timerConfig.Persistent = true;
|
||||||
|
|
||||||
system.stateVersion = "19.03";
|
system.stateVersion = "19.03";
|
||||||
system.autoUpgrade.enable = true;
|
system.autoUpgrade.enable = true;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user