diff options
Diffstat (limited to 'nixos/modules/homelab/core')
| -rw-r--r-- | nixos/modules/homelab/core/caddy.nix | 11 |
1 files changed, 7 insertions, 4 deletions
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 ]; }; } |
