Add runner start
deploy config / Explore-Gitea-Actions (push) Successful in 21s Details

This commit is contained in:
Tom 2024-08-09 21:49:03 +02:00
parent 2fcf7c0d41
commit 2bdb928140
1 changed files with 20 additions and 1 deletions

View File

@ -84,7 +84,26 @@
programs.bash.shellAliases = {
update = "sudo cd /etc/nixos && git pull && nixos-rebuild switch";
};
};
systemd.timers."start-runner" = {
wantedBy = [ "timers.target" ];
timerConfig = {
OnCalendar = "daily";
Persistent = true;
Unit = "start-runner.service";
};
};
systemd.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?