mirror of
https://github.com/RGBCube/ncc
synced 2025-07-30 11:37:44 +00:00
Make Forgejo use git@
This commit is contained in:
parent
30eccf25e0
commit
46491fafde
2 changed files with 9 additions and 3 deletions
|
@ -15,6 +15,12 @@ in serverSystemConfiguration {
|
||||||
}];
|
}];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
users.users.git = {
|
||||||
|
createHome = false;
|
||||||
|
group = "forgejo";
|
||||||
|
isSystemUser = true;
|
||||||
|
};
|
||||||
|
|
||||||
services.forgejo = enabled {
|
services.forgejo = enabled {
|
||||||
lfs = enabled {};
|
lfs = enabled {};
|
||||||
|
|
||||||
|
@ -79,8 +85,8 @@ in serverSystemConfiguration {
|
||||||
HTTP_ADDR = "::";
|
HTTP_ADDR = "::";
|
||||||
HTTP_PORT = 8004;
|
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;
|
DISABLE_ROUTER_LOG = true;
|
||||||
};
|
};
|
||||||
|
|
|
@ -81,7 +81,7 @@ homeConfiguration {
|
||||||
core.sshCommand = "ssh -i ~/.ssh/id";
|
core.sshCommand = "ssh -i ~/.ssh/id";
|
||||||
|
|
||||||
url."ssh://git@github.com/".insteadOf = "https://github.com/";
|
url."ssh://git@github.com/".insteadOf = "https://github.com/";
|
||||||
url."ssh://forgejo@rgbcu.be:2222/".insteadOf = "https://git.rgbcu.be/";
|
url."ssh://git@rgbcu.be:2222/".insteadOf = "https://git.rgbcu.be/";
|
||||||
} // lib.optionalAttrs ulib.isDesktop {
|
} // lib.optionalAttrs ulib.isDesktop {
|
||||||
commit.gpgSign = true;
|
commit.gpgSign = true;
|
||||||
gpg.format = "ssh";
|
gpg.format = "ssh";
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue