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

17 lines
421 B
Nix

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