Initial commit

This commit is contained in:
Toast 2023-06-01 13:07:12 +02:00
commit ea1a31f442
37 changed files with 875 additions and 0 deletions

17
roles/server/gitea.nix Normal file
View file

@ -0,0 +1,17 @@
{ 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 ];
};
}