diff --git a/configuration.nix b/configuration.nix index b1c8e28..0aea1ab 100644 --- a/configuration.nix +++ b/configuration.nix @@ -89,6 +89,26 @@ setSocketVariable = true; }; }; + + 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?