From db686dd4b649bc8208b1f0c9e898f6be6127609a Mon Sep 17 00:00:00 2001 From: triethyl Date: Sun, 7 Sep 2025 19:49:11 -0400 Subject: homelab: worked on git server --- nixos/modules/homelab/core/caddy.nix | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'nixos/modules/homelab/core/caddy.nix') diff --git a/nixos/modules/homelab/core/caddy.nix b/nixos/modules/homelab/core/caddy.nix index 2041846..828aa10 100644 --- a/nixos/modules/homelab/core/caddy.nix +++ b/nixos/modules/homelab/core/caddy.nix @@ -1,4 +1,4 @@ -{config, lib, pkgs, ...}: let +{config, lib, ...}: let cfg = config.homelab.core.caddy; in { options.homelab.core.caddy = { @@ -8,9 +8,12 @@ in { services.caddy = { enable = true; email = "culsans@vivaldi.net"; - virtualHosts."culsans.site".extraConfig = '' - respond "Hello" - ''; + virtualHosts = { + "culsans.site".extraConfig = '' + respond "Hello" + ''; + }; }; + networking.firewall.allowedTCPPorts = [ 80 443 ]; }; } -- cgit v1.2.3