From c5b3675d75a1be620ecfe6f0f6d8b7e46d888a8e Mon Sep 17 00:00:00 2001 From: Dmitry Voronin Date: Sat, 4 May 2024 22:22:59 +0300 Subject: [PATCH] AutoUpdateSigned : Wait for network. --- module/common/AutoUpdateSigned.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/module/common/AutoUpdateSigned.nix b/module/common/AutoUpdateSigned.nix index c8d4b2e..4124225 100644 --- a/module/common/AutoUpdateSigned.nix +++ b/module/common/AutoUpdateSigned.nix @@ -24,6 +24,8 @@ }; ${lib.getExe pkgs.gnumake} switch ''; + after = [ "network-online.target" ]; + wants = [ "network-online.target" ]; }; systemd.timers.autoupdate = { @@ -31,6 +33,7 @@ OnCalendar = "hourly"; Persistent = true; Unit = "autoupdate.service"; + # RandomizedDelaySec = 60; }; wantedBy = [ "timers.target" ]; };