f170a2eb73
Must match services.gitea.database.user
27 lines
470 B
Nix
27 lines
470 B
Nix
{ config, lib, pkgs, ... }:
|
|
|
|
{
|
|
# I prefer git@... ssh addresses over gitea@...
|
|
users.users.git = {
|
|
useDefaultShell = true;
|
|
home = "/var/lib/gitea";
|
|
group = "gitea";
|
|
};
|
|
|
|
services.gitea = {
|
|
enable = true;
|
|
log.level = "Info";
|
|
|
|
user = "git";
|
|
database = {
|
|
user = "git";
|
|
type = "postgres";
|
|
};
|
|
useWizard = false;
|
|
disableRegistration = true;
|
|
|
|
# We're assuming SSL-only connectivity
|
|
cookieSecure = true;
|
|
};
|
|
}
|