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:
parent
24b5686a26
commit
90b8ac5250
2 changed files with 16 additions and 195 deletions
|
|
@ -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 ];
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue