ahuston-0 c18e54fcdd
Some checks failed
Check Nix flake / Perform Nix flake checks (ubuntu-latest) (push) Failing after 6m50s
Check flake.lock / Check health of `flake.lock` (push) Successful in 9m43s
Check Nix formatting / Perform Nix format checks (push) Failing after 5m36s
Update flakes / createPullRequest (push) Failing after 3h13m22s
gitea over ssh is working, https in progress
Signed-off-by: ahuston-0 <aliceghuston@gmail.com>
2024-11-30 00:30:57 -05:00

54 lines
1.0 KiB
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 = "nayeonie.com";
ROOT_URL = "https://nayeonie.com/";
HTTP_PORT = 6443;
SSH_PORT = 2222;
SSH_LISTEN_PORT = 2223;
START_SSH_SERVER = true;
};
service = {
DISABLE_REGISTRATION = true;
};
log = {
LEVEL = "Trace";
ENABLE_SSH_LOG = true;
};
"log.console-warn" = {
LEVEL = "Trace";
ENABLE_SSH_LOG = true;
};
};
stateDir = base_path;
lfs.enable = true;
recommendedDefaults = true;
};
networking.firewall.allowedTCPPorts = [ 6443 ];
sops.secrets = {
"gitea/dbpass".owner = "gitea";
};
}