gitea litestream permissions fixes

This commit is contained in:
Noah Masur 2022-10-16 20:39:04 +00:00
parent 982566a92e
commit d97e3fda07

View File

@ -60,6 +60,10 @@ in {
# Open to groups, allowing for backups
systemd.services.gitea.serviceConfig.StateDirectoryMode =
lib.mkForce "0770";
systemd.tmpfiles.rules = [
"d ${giteaPath}/data 0775 gitea gitea"
"f ${giteaPath}/data/gitea.db 0660 gitea gitea"
];
# Allow litestream and gitea to share a sqlite database
users.users.litestream.extraGroups = [ "gitea" ];