This commit is contained in:
albert 2025-02-02 21:49:10 -08:00
parent 0cc6a56ef4
commit 64bb2d779a
Signed by: albert
GPG key ID: 3895DD267CA11BA9

View file

@ -14,7 +14,7 @@
enable = true;
name = "${hostname}";
labels = [
"nix"
"nix:host://self-hsoted"
"${hostname}:host://self-hosted"
"self-hosted:host://self-hosted"
"alpine:docker://alpine:edge"
@ -23,14 +23,18 @@
];
url = "https://git.sysctl.io";
tokenFile = /run/secrets/services/forgejo_token;
hostPackages = with pkgs; [ nix deploy-rs nodejs coreutils ];
hostPackages = with pkgs; [ nix deploy-rs nodejs coreutils git gnutar gzip ];
};
};
systemd.services.gitea-actions-runner-default = {
serviceConfig = {
CacheDirectory = "gitea-actions-runner-default"; # Add this line
StateDirectory = "gitea-actions-runner-default";
RuntimeDirectory = "gitea-actions-runner-default";
RuntimeDirectory = "gitea-actions-runner-default";
};
preStop = ''
rm -rf /var/lib/gitea-runner/default/.cache/act/*
''; # Cache cleanup
};
}