nixos-config/linux/nebula/forgejo.nix
2025-03-20 11:34:45 +08:00

16 lines
404 B
Nix

{config, ...}: {
services.forgejo = {
enable = true;
settings = {
repository.ENABLE_PUSH_CREATE_USER = true;
server = with config.constants; {
DOMAIN = domain;
HTTP_ADDR = wildcard;
HTTP_PORT = port.forgejo;
ROOT_URL = "https://forgejo.${domain}";
};
service.DISABLE_REGISTRATION = true;
session.COOKIE_SECURE = true;
};
};
}