nix-deploy/config/hosts/wind/services/gitea.nix

34 lines
698 B
Nix
Raw Normal View History

2021-09-22 10:16:11 +02:00
{ ... }:
{
2023-12-13 20:27:13 +01:00
services.forgejo = {
2023-02-21 11:30:39 +01:00
enable = true;
2023-12-13 20:27:13 +01:00
user = "gitea";
group = "gitea";
stateDir = "/var/lib/gitea";
2023-02-21 11:30:39 +01:00
database = {
type = "postgres";
2023-12-13 20:27:13 +01:00
name = "gitea";
user = "gitea";
2023-02-21 11:30:39 +01:00
};
2023-12-13 20:27:13 +01:00
settings = {
DEFAULT.APP_NAME = "Graven Gitea";
service.DISABLE_REGISTRATION = true;
session.COOKIE_SECURE = true;
server.DOMAIN = "git.graven.dev";
server.ROOT_URL = "https://git.graven.dev";
server.PROTOCOL = "http+unix";
ui.DEFAULT_THEME = "arc-green";
};
};
users.users.gitea = {
home = "/var/lib/gitea";
useDefaultShell = true;
group = "gitea";
isSystemUser = true;
2023-02-21 11:30:39 +01:00
};
2023-12-13 20:27:13 +01:00
users.groups.gitea = {};
2021-09-22 10:16:11 +02:00
}