nix-stuff/roles/server/gitea.nix
2023-06-15 13:07:37 +02:00

19 lines
438 B
Nix

{ config, lib, ... }:
{
specialisation.giteaEnableRegistration.configuration.services.gitea.settings.service.DISABLE_REGISTRATION = false;
services.gitea = {
enable = true;
# TODO: Make this not be hardcoded
settings = {
server = {
#server.SSH_PORT = 69;
DISABLE_REGISTRATION = lib.mkDefault true;
ROOT_URL = "http://everest.local:3000";
};
};
};
networking.firewall = {
allowedTCPPorts = [ 3000 ];
};
}