helm/modules/services/gitea.nix
2019-11-19 00:22:23 -05:00

26 lines
452 B
Nix

{ config, lib, pkgs, ... }:
{
# I prefer git@... ssh addresses over gitea@...
users.users.git = {
useDefaultShell = true;
home = "/var/lib/gitea";
group = "gitea";
};
services.gitea = {
enable = true;
log.level = "Info";
database = {
user = "git";
type = "postgres";
};
useWizard = false;
disableRegistration = true;
# We're assuming SSL-only connectivity
cookieSecure = true;
};
}