Compare commits
4 Commits
cae3fdf479
...
8bf14fbdf6
| Author | SHA1 | Date | |
|---|---|---|---|
| 8bf14fbdf6 | |||
| 54a0a804a9 | |||
| 0dc1f3e7aa | |||
| 2df709af93 |
@@ -1,5 +1,6 @@
|
||||
name: Apply Kuberentes Configs
|
||||
on: [push, workflow_dispatch]
|
||||
runs-on: home-server
|
||||
jobs:
|
||||
update-repo:
|
||||
uses: ./.gitea/workflows/update-repo.yml
|
||||
|
||||
@@ -31,6 +31,9 @@
|
||||
container = {
|
||||
enabled = false;
|
||||
};
|
||||
runner = {
|
||||
capacity = 5;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
@@ -50,6 +53,20 @@
|
||||
|
||||
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 = {
|
||||
WorkingDirectory = lib.mkForce "/var/lib/gitea-runner/infrastructure";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user