ahuston-0 f34b409f30
Some checks failed
Check Nix flake / Perform Nix flake checks (ubuntu-latest) (push) Has been cancelled
Check flake.lock / Check health of `flake.lock` (push) Has been cancelled
Check Nix formatting / Perform Nix format checks (push) Has been cancelled
disable registration on gitea
Signed-off-by: ahuston-0 <aliceghuston@gmail.com>
2024-10-21 00:27:46 -04:00

43 lines
794 B
Nix

{
config,
lib,
pkgs,
...
}:
let
base_path = "/ZFS/ZFS-primary/gitea";
in
{
services.gitea = {
enable = true;
appName = "The Hearth";
database = {
type = "postgres";
passwordFile = config.sops.secrets."gitea/dbpass".path;
createDatabase = false;
host = "127.0.0.1";
name = "giteadb";
port = 5433;
};
settings = {
server = {
DOMAIN = "git.alicehuston.xyz";
ROOT_URL = "https://git.alicehuston.xyz/";
HTTP_PORT = 6443;
};
service = {
DISABLE_REGISTRATION = true;
};
};
stateDir = base_path;
lfs.enable = true;
recommendedDefaults = true;
};
networking.firewall.allowedTCPPorts = [ 6443 ];
sops.secrets = {
"gitea/dbpass".owner = "gitea";
};
}