diff --git a/hosts/cube/gitea.nix b/hosts/cube/gitea.nix new file mode 100644 index 0000000..cc59bc9 --- /dev/null +++ b/hosts/cube/gitea.nix @@ -0,0 +1,27 @@ +{ config, ulib, ... }: with ulib; + +let + inherit (config.networking) domain; + + fqdn = "git.${domain}"; +in serverSystemConfiguration { + services.gitea = { # enabed { + lfs = enabled {}; + + database = { + socket = "/run/postgresql"; + type = "postgres"; + }; + + settings = { + APP_NAME = "RGBCube's Git Server"; + + server.DOMAIN = fqdn; + server.HTTP_ADDR = "::"; + server.SSH_PORT = builtins.elemAt config.services.openssh.port 0; + + service.DISABLE_REGISTRATION = true; + session.COOKIE_SECURE = true; + }; + }; +}