Generalize gitea module

This commit is contained in:
Henrik Lissner 2019-11-19 00:22:23 -05:00
parent 7a1a6e1cf1
commit 1d70a55b2a
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395
2 changed files with 14 additions and 8 deletions

View file

@ -55,4 +55,14 @@
"dl.v0.io".email = "henrik@lissner.net";
"git.v0.io".email = "henrik@lissner.net";
};
services.gitea = {
appName = "V-NOUGHT";
domain = "v0.io";
rootUrl = "https://git.v0.io/";
extraConfig = ''
[server]
SSH_DOMAIN = v0.io
'';
};
}

View file

@ -1,6 +1,7 @@
{ config, lib, pkgs, ... }:
{
# I prefer git@... ssh addresses over gitea@...
users.users.git = {
useDefaultShell = true;
home = "/var/lib/gitea";
@ -11,19 +12,14 @@
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
'';
# We're assuming SSL-only connectivity
cookieSecure = true;
};
}