From 49b82429f7c5caad1e59e16cc25c76c1216a0f4d Mon Sep 17 00:00:00 2001 From: Tom Date: Fri, 9 Aug 2024 22:00:19 +0200 Subject: [PATCH] Systemd timmer runner --- configuration.nix | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/configuration.nix b/configuration.nix index 1fdc49b..9da9282 100644 --- a/configuration.nix +++ b/configuration.nix @@ -100,6 +100,26 @@ acceptTerms = true; defaults.email = "gentoo@blubb.fish"; }; + + systemd = { + timers."start-runner" = { + wantedBy = [ "timers.target" ]; + timerConfig = { + OnCalendar = "daily"; + Persistent = true; + Unit = "start-runner.service"; + }; + }; + services."start-runner" = { + script = '' + /root/runner/act_runner daemon & + ''; + serviceConfig = { + Type = "oneshot"; + User = "root"; + }; + }; + }; # leave installation default system.stateVersion = "24.05"; # Did you read the comment?