helm/modules/services/gitea.nix
2019-11-18 21:42:57 -05:00

30 lines
511 B
Nix

{ config, lib, pkgs, ... }:
{
users.users.git = {
useDefaultShell = true;
home = "/var/lib/gitea";
group = "gitea";
};
services.gitea = {
enable = true;
log.level = "Info";
appName = "V-NOUGHT";
database = {
user = "git";
type = "postgres";
};
domain = "v0.io";
rootUrl = "https://git.v0.io/";
cookieSecure = true;
useWizard = false;
disableRegistration = true;
extraConfig = ''
[server]
SSH_DOMAIN = v0.io
'';
};
}