From 0846fec2ecada3d2b4479f09d9bdfa2c44a6fc89 Mon Sep 17 00:00:00 2001 From: Skullheadx Date: Sun, 31 May 2026 16:40:51 -0400 Subject: gitweb --- hosts/icon/configuration.nix | 25 ++++++++++++++++++++++++- 1 file changed, 24 insertions(+), 1 deletion(-) (limited to 'hosts/icon/configuration.nix') diff --git a/hosts/icon/configuration.nix b/hosts/icon/configuration.nix index 14e3d3d..0c6ad15 100644 --- a/hosts/icon/configuration.nix +++ b/hosts/icon/configuration.nix @@ -33,6 +33,29 @@ }; }; + services.gitweb = { + projectroot = "/srv/git"; + }; + + services.nginx = { + enable = true; + virtualHosts = { + "git.skullheadx.com" = { + listen = [ + { + addr = "10.0.0.2"; + port = 8080; + } + ]; + }; + }; + gitweb = { + enable = true; + location = ""; + virtualHost = "git.skullheadx.com"; + }; + }; + networking.hostName = "icon"; # networking.wireless.enable = true; # Enables wireless support via wpa_supplicant. @@ -74,7 +97,7 @@ }; # Open ports in the firewall. - networking.firewall.allowedTCPPorts = [9418]; + networking.firewall.allowedTCPPorts = [9418 8080]; networking.firewall.allowedUDPPorts = [55555]; # Or disable the firewall altogether. # networking.firewall.enable = false; -- cgit v1.3.1