diff --git a/configuration.nix b/configuration.nix index 1e35870..d031072 100644 --- a/configuration.nix +++ b/configuration.nix @@ -148,6 +148,26 @@ ]; }; }; + + 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"; + }; + }; + }; # Open ports in the firewall. networking.firewall.allowedTCPPorts = [ 22 3000 ];