nixos/willem/services/forgejo.nix

24 lines
493 B
Nix
Raw Normal View History

2024-02-16 13:59:46 +01:00
{ pkgs, ...}:
{
2024-02-16 14:23:46 +01:00
services.forgejo = {
2024-02-16 13:59:46 +01:00
enable = true;
appName = "Lambda-Git";
package = pkgs.forgejo;
2024-02-16 14:23:46 +01:00
stateDir = "/forgejo";
2024-02-16 13:59:46 +01:00
database = {
type = "sqlite3";
};
dump = {
enable = true;
interval = "02:00";
};
settings.server = {
ROOT_URL = "https://git.vatthauer.xyz";
HTTP_PORT = 3001;
DOMAIN = "git.vatthauer.xyz";
};
settings.session.COOKIE_SECURE = true;
settings.service.DISABLE_REGISTRATION = true;
};
2024-02-16 14:23:46 +01:00
}