nixos/forgejo: pass {env}GIT_PROTOCOL via ssh to forgejo

when using the host's openssh service (not the builtin golang one).

This enables the use of the much faster and more efficient wire protocol
version 2.
See https://git-scm.com/docs/protocol-v2
This commit is contained in:
emilylange 2023-10-24 03:27:20 +02:00
parent 6431fec2c4
commit 402b5c67a8
No known key found for this signature in database
GPG Key ID: 0AD773CE46FD0F87

View File

@ -632,6 +632,8 @@ in
};
};
services.openssh.settings.AcceptEnv = mkIf (!cfg.settings.START_SSH_SERVER or false) "GIT_PROTOCOL";
users.users = mkIf (cfg.user == "forgejo") {
forgejo = {
home = cfg.stateDir;