2019-11-17 22:25:29 -08:00
|
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
|
|
|
|
{
|
2019-11-18 18:41:35 -08:00
|
|
|
users.users.git = {
|
|
|
|
useDefaultShell = true;
|
|
|
|
home = "/var/lib/gitea";
|
|
|
|
group = "gitea";
|
|
|
|
};
|
2019-11-17 22:25:29 -08:00
|
|
|
|
2019-11-18 18:41:35 -08:00
|
|
|
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
|
|
|
|
'';
|
|
|
|
};
|
2019-11-17 22:25:29 -08:00
|
|
|
}
|