Files
homelab/config/git-gitea.nix
Xavier Morel e8a0b57a73
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 4s
fix(git): add cache whitelist for the runner
2026-02-09 11:34:38 +01:00

54 lines
1.1 KiB
Nix

{
pkgs,
config,
tools,
...
}:
{
services = {
gitea = {
enable = true;
database = {
type = "postgres";
user = "git";
name = "git";
password = config.my-lxc.git.db.password;
host = tools.build_ip "db";
createDatabase = false;
};
settings = {
server.ROOT_URL = "https://${tools.build_hostname "git"}";
server.HTTP_PORT = 3000;
};
dump = {
enable = true;
# TODO: Manual mountpoint /mnt/backups => NAS
backupDir = "/mnt/backups/gitea";
interval = "1:42";
type = "tar.gz";
};
};
gitea-actions-runner.instances.nixos = {
name = "nixos";
enable = true;
hostPackages = with pkgs; [
bash
coreutils
curl
gawk
gitMinimal
gnused
wget
devenv
nodejs
nix
];
labels = [
"native:host"
];
tokenFile = config.age.secrets.gitea-action-token.path;
url = "https://${tools.build_hostname "git"}";
};
};
}