From c3c40ed6f609c9d4629d5bc0f2b46f71e4d8b516 Mon Sep 17 00:00:00 2001 From: Dmitry Voronin Date: Mon, 14 Oct 2024 16:54:04 +0300 Subject: [PATCH] AutoUpdateSigned : Replace broken RuntimeMaxSec with timeout, thanks to Fox. --- module/AutoUpdateSigned.nix | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/module/AutoUpdateSigned.nix b/module/AutoUpdateSigned.nix index 6d3e36b..d814081 100644 --- a/module/AutoUpdateSigned.nix +++ b/module/AutoUpdateSigned.nix @@ -34,11 +34,12 @@ in enable = true; description = "Signed system auto-update."; serviceConfig = { - RuntimeMaxSec = "55m"; + # RuntimeMaxSec = "55m"; # Doesn't work with oneshot, using timeout bellow. Type = "oneshot"; }; path = with pkgs; [ bash + coreutils git gnumake nixos-rebuild @@ -53,7 +54,7 @@ in echo "Verification failed." exit 1 }; - make switch + timeout 55m make switch ''; after = [ "network-online.target" ]; wants = [ "network-online.target" ];