nixos-config/linux/nebula/forgejo.nix

20 lines
447 B
Nix
Raw Normal View History

2023-10-09 10:44:07 -07:00
{ config, pkgs, ... }:
{
services.gitea = {
enable = true;
appName = "Forgejo";
package = pkgs.forgejo;
settings = {
2023-12-06 21:46:16 -08:00
server = let const = config.constants; in {
DOMAIN = const.domain;
HTTP_ADDR = const.tsMask;
HTTP_PORT = const.port.forgejo;
ROOT_URL = "https://forgejo.${const.domain}";
2023-10-09 10:44:07 -07:00
};
service.DISABLE_REGISTRATION = true;
session.COOKIE_SECURE = true;
};
};
}