nixos-config/linux/nebula/forgejo.nix
2023-12-06 23:34:51 -08:00

19 lines
415 B
Nix

{ config, pkgs, ... }:
{
services.gitea = {
enable = true;
appName = "Forgejo";
package = pkgs.forgejo;
settings = {
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;
};
};
}