bekkalokk/gitea-web: fix SSH access

This commit is contained in:
Oystein Kristoffer Tveit 2024-12-10 21:05:06 +01:00
parent 02792fc20e
commit 850d0b0ec5
Signed by untrusted user: oysteikt
GPG Key ID: 9F2F7D8250F35146

View File

@ -27,6 +27,7 @@ in
users.users."gitea-web" = {
group = "gitea-web";
isSystemUser = true;
shell = pkgs.bash;
};
sops.secrets."gitea/web-secret-provider/token" = {
@ -58,6 +59,7 @@ in
key-dir = "/var/lib/gitea-web/keys/%i";
authorized-keys-path = "/var/lib/gitea-web/authorized_keys.d/%i";
rrsync-script = pkgs.writeShellScript "rrsync-chown" ''
mkdir -p "$1"
${lib.getExe pkgs.rrsync} -wo "$1"
${pkgs.coreutils}/bin/chown -R gitea-web:gitea-web "$1"
'';