From 57cc4cec2c40e17870e5937906682580c9f29d73 Mon Sep 17 00:00:00 2001 From: Daniel Kempkens Date: Thu, 1 Jun 2023 21:13:01 +0200 Subject: [PATCH] podman-auto-update-custom: Rework --- system/nixos/container.nix | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/system/nixos/container.nix b/system/nixos/container.nix index 686c512..edc82e8 100644 --- a/system/nixos/container.nix +++ b/system/nixos/container.nix @@ -31,8 +31,10 @@ # It looks like there is no way to activate the "built-in" service and timer ... systemd.services.podman-auto-update-custom = { + description = "Run podman auto-update daily"; wants = [ "network-online.target" ]; after = [ "network-online.target" ]; + startAt = "daily"; serviceConfig = let @@ -44,14 +46,4 @@ ExecStartPost = "${podman}/bin/podman image prune -f"; }; }; - - systemd.timers.podman-auto-update-custom = { - wantedBy = [ "timers.target" ]; - - timerConfig = { - OnCalendar = "daily"; - RandomizedDelaySec = 900; - Persistent = true; - }; - }; }