From 2392b7720f772c6cce711edf47eda9308a404bcf Mon Sep 17 00:00:00 2001 From: Solene Rapenne Date: Thu, 6 Oct 2022 20:52:11 +0200 Subject: [PATCH] utils: use startAt in bento-upgrade service to auto create the timer --- utils/bento.nix | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/utils/bento.nix b/utils/bento.nix index 61ed478..bd989ac 100644 --- a/utils/bento.nix +++ b/utils/bento.nix @@ -5,18 +5,9 @@ }: let timer = "*:0/15"; in { - systemd.timers.bento-upgrade = { - enable = true; - timerConfig = { - OnCalendar = "${timer}"; - Unit = "bento-upgrade.service"; - }; - wantedBy = ["timers.target"]; - after = ["network-online.target"]; - }; - systemd.services.bento-upgrade = { enable = true; + startAt = "${timer}"; path = with pkgs; [openssh git nixos-rebuild nix gzip]; serviceConfig.Type = "oneshot"; script = ''