1
Fork 0
mirror of https://github.com/RGBCube/ncc synced 2025-07-29 19:17:45 +00:00

Make Forgejo use git@

This commit is contained in:
RGBCube 2024-02-07 10:16:15 +03:00
parent 30eccf25e0
commit 46491fafde
No known key found for this signature in database
2 changed files with 9 additions and 3 deletions

View file

@ -15,6 +15,12 @@ in serverSystemConfiguration {
}];
};
users.users.git = {
createHome = false;
group = "forgejo";
isSystemUser = true;
};
services.forgejo = enabled {
lfs = enabled {};
@ -79,8 +85,8 @@ in serverSystemConfiguration {
HTTP_ADDR = "::";
HTTP_PORT = 8004;
SSH_CREATE_AUTHORIZED_KEYS_FILE = true;
SSH_PORT = builtins.elemAt config.services.openssh.ports 0;
SSH_PORT = builtins.elemAt config.services.openssh.ports 0;
SSH_USER = "git";
DISABLE_ROUTER_LOG = true;
};