diff --git a/configuration.nix b/configuration.nix index 02791db..2b79b12 100644 --- a/configuration.nix +++ b/configuration.nix @@ -82,22 +82,23 @@ qemuGuest.enable = true; }; - systemd.timers."start-runner" = { - wantedBy = [ "timers.target" ]; - timerConfig = { - OnCalendar = "daily"; - Persistent = true; - Unit = "start-runner.service"; + 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"; }; - }; - - systemd.services."start-runner" = { - script = '' - /root/runner/act_runner daemon & - ''; - serviceConfig = { - Type = "oneshot"; - User = "root"; }; };