Compare commits

..

4 Commits

Author SHA1 Message Date
8bf14fbdf6 capacity
All checks were successful
Apply Kuberentes Configs / update-repo (push) Successful in 1s
Apply Kuberentes Configs / update-infrastructure (push) Successful in 1s
2026-02-07 15:11:40 -07:00
54a0a804a9 capacity 2026-02-07 15:10:41 -07:00
0dc1f3e7aa zfs permissions 2026-02-07 15:00:14 -07:00
2df709af93 zfs permissions 2026-02-07 15:00:00 -07:00
2 changed files with 18 additions and 0 deletions

View File

@@ -1,5 +1,6 @@
name: Apply Kuberentes Configs name: Apply Kuberentes Configs
on: [push, workflow_dispatch] on: [push, workflow_dispatch]
runs-on: home-server
jobs: jobs:
update-repo: update-repo:
uses: ./.gitea/workflows/update-repo.yml uses: ./.gitea/workflows/update-repo.yml

View File

@@ -31,6 +31,9 @@
container = { container = {
enabled = false; enabled = false;
}; };
runner = {
capacity = 5;
};
}; };
}; };
}; };
@@ -50,6 +53,20 @@
users.groups.gitea-runner = { }; users.groups.gitea-runner = { };
system.activationScripts.zfs-delegate-gitea-runner = {
text =
let
poolNames = [ "data-ssd" "backup" ];
permissions = "compression,create,destroy,mount,mountpoint,receive,rollback,send,snapshot,hold";
in
''
${lib.concatMapStringsSep "\n" (pool:
"${pkgs.zfs}/bin/zfs allow -u gitea-runner ${permissions} ${pool} || true"
) poolNames}
'';
deps = [ ];
};
systemd.services.gitea-runner-infrastructure.serviceConfig = { systemd.services.gitea-runner-infrastructure.serviceConfig = {
WorkingDirectory = lib.mkForce "/var/lib/gitea-runner/infrastructure"; WorkingDirectory = lib.mkForce "/var/lib/gitea-runner/infrastructure";