1
Fork 0
mirror of https://github.com/thegeneralist01/config.git synced 2026-03-07 10:59:55 +01:00

forgejo: add chmod's for the CI

This commit is contained in:
TheGeneralist 2026-01-31 22:53:16 +01:00
parent 24b5686a26
commit 90b8ac5250
Signed by: thegeneralist01
SSH key fingerprint: SHA256:pp9qddbCNmVNoSjevdvQvM5z0DHN7LTa8qBMbcMq/R4
2 changed files with 16 additions and 195 deletions

View file

@ -142,6 +142,8 @@ in
DynamicUser = lib.mkForce false;
StateDirectory = lib.mkForce "gitea-runner";
StateDirectoryMode = "0755";
# Ensure newly created files are group-writable for the shared repo.
UMask = "0002";
};
users.groups.gitea-runner = { };
@ -161,5 +163,10 @@ in
"Z /home/thegeneralist/blog/.git - thegeneralist users -"
];
system.activationScripts.blogGitPerms.text = ''
${pkgs.coreutils}/bin/chmod -R g+rwX /home/thegeneralist/blog/.git/objects
${pkgs.acl}/bin/setfacl -R -m g:users:rwx -m d:g:users:rwx /home/thegeneralist/blog/.git/objects
'';
networking.firewall.allowedTCPPorts = [ 2222 ];
}