nix/hosts/marvin/services/gitea.nix

44 lines
1.1 KiB
Nix
Raw Normal View History

2022-07-02 14:00:09 +00:00
{
services.gitea = {
enable = true;
2022-07-02 21:23:49 +00:00
domain = "git.thehedgehog.me";
rootUrl = "https://git.thehedgehog.me";
2022-07-02 14:00:09 +00:00
appName = "HedgeGit";
httpPort = 6904;
2022-07-02 14:00:09 +00:00
lfs.enable = true;
database.type = "postgres";
database.createDatabase = true;
database.passwordFile = "/run/agenix/gitea-db-pw";
mailerPasswordFile = "/run/agenix/gitea-mail-pw";
settings = {
mailer = {
ENABLED = true;
FROM = "git@thehedgehog.me";
MAILER_TYPE = "smtp";
HOST = "smtp.migadu.com:465";
IS_TLS_ENABLED = true;
USER = "git@thehedgehog.me";
};
picture = {
ENABLE_FEDERATED_AVATAR = true;
};
2022-07-24 14:21:32 +00:00
ui = {
2022-07-24 14:37:10 +00:00
THEMES = "gitea,arc-green,plex,aquamarine,dark,dracula,hotline,organizr,space-gray,hotpink,onedark,overseerr,nord,tokyo-night";
2022-07-24 14:21:32 +00:00
DEFAULT_THEME = "gitea";
};
2022-08-05 14:52:56 +00:00
metrics = {
ENABLED = true;
};
server = {
DISABLE_SSH = true;
};
session = {
COOKIE_SECURE = true;
};
service = {
DISABLE_REGISTRATION = true;
};
2022-07-02 14:00:09 +00:00
};
};
}