summaryrefslogtreecommitdiff
path: root/nixos/modules/homelab/core
diff options
context:
space:
mode:
authortriethyl <triethylammonium@pm.me>2025-09-07 19:49:11 -0400
committertriethyl <triethylammonium@pm.me>2025-09-07 19:49:11 -0400
commitdb686dd4b649bc8208b1f0c9e898f6be6127609a (patch)
tree98683a50d1a1daf8d354310c655e01ea0b41125a /nixos/modules/homelab/core
parent11eca6aa9692fb0434d278db8a049bdd2b85f14e (diff)
homelab: worked on git server
Diffstat (limited to 'nixos/modules/homelab/core')
-rw-r--r--nixos/modules/homelab/core/caddy.nix11
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 ];
};
}