ahuston-0 4bf03a22fd
add gitea
Signed-off-by: ahuston-0 <aliceghuston@gmail.com>
2024-10-20 18:41:49 -04:00

31 lines
570 B
Nix

{
config,
lib,
pkgs,
...
}:
let
base_path = "/ZFS/ZFS-primary/gitea";
in
{
services.gitea = {
enable = true;
appName = "Nyx's Gitea"; # Give the site a name
database = {
type = "postgres";
passwordFile = config.sops.secrets."gitea/dbpass".path;
host = "127.0.0.1:5432";
};
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";
};
}