environment

This commit is contained in:
2026-02-07 13:54:49 -07:00
parent 0ce24bad4e
commit eb111fb5f8

View File

@@ -52,15 +52,15 @@
systemd.tmpfiles.rules = [ systemd.tmpfiles.rules = [
"d /data/runner 0755 gitea-runner gitea-runner -" "d /data/runner 0755 gitea-runner gitea-runner -"
"f /data/runner/gitea-infrastructure-token.txt 0600 gitea-runner gitea-runner -" "f /data/runner/gitea-infrastructure-token.txt 0600 gitea-runner gitea-runner -"
"d /home/gitea-runner 0755 gitea-runner gitea-runner -"
]; ];
systemd.services.gitea-runner-infrastructure.serviceConfig = { systemd.services.gitea-runner-infrastructure.serviceConfig = {
ReadWritePaths = lib.mkForce [ ]; # Let systemd create the working directory with proper permissions
StateDirectory = lib.mkForce "gitea-runner-infrastructure"; WorkingDirectory = lib.mkForce "/home/gitea-runner";
StateDirectoryMode = lib.mkForce "0755"; WorkingDirectoryMode = lib.mkForce "0755";
# ADD THIS - set the working directory ReadWritePaths = lib.mkForce [ ];
WorkingDirectory = lib.mkForce "/var/lib/gitea-runner-infrastructure/infrastructure";
# Disable all sandboxing features # Disable all sandboxing features
DynamicUser = lib.mkForce false; DynamicUser = lib.mkForce false;