Added git server

This commit is contained in:
Lucas Thelen 2025-10-03 18:45:53 +00:00
parent e08c4b27e2
commit 2821a76450
3 changed files with 32 additions and 0 deletions

18
services/forgejo.nix Normal file
View file

@ -0,0 +1,18 @@
{ pkgs, ... }: {
services.forgejo = {
enable = true;
settings = {
server = {
ROOT_URL = "https://git.per-aspera.space";
HTTP_ADDR = "0.0.0.0";
HTTP_PORT = 3000;
SSH_DOMAIN = "git.per-aspera.space";
SSH_PORT = 2222;
};
service = { DISABLE_REGISTRATION = false; };
};
};
networking.firewall.allowedTCPPorts = [ 3000 2222 ];
}