Generalize gitea module
This commit is contained in:
parent
7a1a6e1cf1
commit
1d70a55b2a
|
@ -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
|
||||
'';
|
||||
};
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue