nixos/whale2: Move actions cache to a separate disk

This commit is contained in:
2023-11-16 19:39:53 +00:00
parent 5ddcf927e3
commit 3ae6725f0e
2 changed files with 25 additions and 69 deletions

View File

@@ -8,10 +8,21 @@ let
container = {
network = "colony";
};
cache = {
enabled = true;
dir = "/var/cache/gitea-runner";
};
});
in
{
config = {
fileSystems = {
"/var/cache/gitea-runner" = {
device = "/dev/disk/by-label/actions-cache";
fsType = "ext4";
};
};
services = {
gitea-actions-runner.instances = {
main = {
@@ -42,6 +53,7 @@ in
services = {
gitea-runner-main.serviceConfig = {
# Needs to be able to read its secrets
CacheDirectory = "gitea-runner";
DynamicUser = mkForce false;
User = "gitea-runner";
Group = "gitea-runner";