From 99f52a2a765e1097fab4d6fa73e93fcb283287c2 Mon Sep 17 00:00:00 2001 From: triethyl Date: Sat, 6 Sep 2025 14:48:44 -0400 Subject: homelab: added caddy and more --- nixos/modules/homelab/core/caddy.nix | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 nixos/modules/homelab/core/caddy.nix (limited to 'nixos/modules/homelab/core/caddy.nix') diff --git a/nixos/modules/homelab/core/caddy.nix b/nixos/modules/homelab/core/caddy.nix new file mode 100644 index 0000000..2041846 --- /dev/null +++ b/nixos/modules/homelab/core/caddy.nix @@ -0,0 +1,16 @@ +{config, lib, pkgs, ...}: let + cfg = config.homelab.core.caddy; +in { + options.homelab.core.caddy = { + enable = lib.mkEnableOption "caddy"; + }; + config = lib.mkIf cfg.enable { + services.caddy = { + enable = true; + email = "culsans@vivaldi.net"; + virtualHosts."culsans.site".extraConfig = '' + respond "Hello" + ''; + }; + }; +} -- cgit v1.2.3