From 671d5e8043df11e0e05667551cd6add54c6ca6cb Mon Sep 17 00:00:00 2001 From: Ari Sosnovsky Date: Mon, 4 Aug 2025 11:24:08 -0400 Subject: [PATCH] gitea --- hosts/hl-minipc1.nix | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/hosts/hl-minipc1.nix b/hosts/hl-minipc1.nix index ba289d6..c5167a4 100644 --- a/hosts/hl-minipc1.nix +++ b/hosts/hl-minipc1.nix @@ -5,11 +5,15 @@ let audiobookshelf = 8000; nixServe = 5000; dockerRegistry = 5001; + gitea.http = 3000; + gitea.ssh = 2222; }; openPorts = [ ports.nixServe ports.dockerRegistry ports.audiobookshelf + ports.gitea.ssh + ports.gitea.http 22 ]; in @@ -56,6 +60,19 @@ in listenAddress = "0.0.0.0"; enableDelete = true; }; + services.gitea = { + enable = true; + appName = "Sosnovsky gitea"; + stateDir = "/var/lib/sosnovsky/gitea"; + settings = { + server = { + DOMAIN = "minipc1.lab.internal"; + HTTP_PORT = ports.gitea.http; + SSH_PORT = ports.gitea.ssh; + DISABLE_REGISTRATION = true; + }; + }; + }; # Firewall networking.firewall.allowedUDPPorts = openPorts; networking.firewall.allowedTCPPorts = openPorts;