2019-11-17 22:25:29 -08:00
|
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
|
|
|
|
{
|
2019-11-18 21:22:23 -08:00
|
|
|
# I prefer git@... ssh addresses over gitea@...
|
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";
|
|
|
|
|
|
|
|
database = {
|
|
|
|
user = "git";
|
|
|
|
type = "postgres";
|
|
|
|
};
|
|
|
|
useWizard = false;
|
|
|
|
disableRegistration = true;
|
2019-11-18 21:22:23 -08:00
|
|
|
|
|
|
|
# We're assuming SSL-only connectivity
|
|
|
|
cookieSecure = true;
|
2019-11-18 18:41:35 -08:00
|
|
|
};
|
2019-11-17 22:25:29 -08:00
|
|
|
}
|