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"; "dl.v0.io".email = "henrik@lissner.net";
"git.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, ... }: { config, lib, pkgs, ... }:
{ {
# I prefer git@... ssh addresses over gitea@...
users.users.git = { users.users.git = {
useDefaultShell = true; useDefaultShell = true;
home = "/var/lib/gitea"; home = "/var/lib/gitea";
@ -11,19 +12,14 @@
enable = true; enable = true;
log.level = "Info"; log.level = "Info";
appName = "V-NOUGHT";
database = { database = {
user = "git"; user = "git";
type = "postgres"; type = "postgres";
}; };
domain = "v0.io";
rootUrl = "https://git.v0.io/";
cookieSecure = true;
useWizard = false; useWizard = false;
disableRegistration = true; disableRegistration = true;
extraConfig = ''
[server] # We're assuming SSL-only connectivity
SSH_DOMAIN = v0.io cookieSecure = true;
'';
}; };
} }