ahuston-0 5f52f21539
disable gitea createDatabase, fix nix gc
Signed-off-by: ahuston-0 <aliceghuston@gmail.com>
2024-10-20 23:19:44 -04:00

36 lines
651 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";
rootUrl = "https://git.alicehuston.xyz/";
httpPort = 443;
};
stateDir = base_path;
lfs.enable = true;
recommendedDefaults = true;
};
sops.secrets = {
"gitea/dbpass".owner = "gitea";
};
}