summaryrefslogtreecommitdiff
path: root/nixos/modules/homelab/core/caddy.nix
diff options
context:
space:
mode:
authortriethyl <triethylammonium@pm.me>2025-09-06 14:48:44 -0400
committertriethyl <triethylammonium@pm.me>2025-09-06 14:48:44 -0400
commit99f52a2a765e1097fab4d6fa73e93fcb283287c2 (patch)
treecea40438aca6eae793c589564e3a4180d66c7097 /nixos/modules/homelab/core/caddy.nix
parent6c15c64f54280e7dd4549608ccc96509cdd76f32 (diff)
homelab: added caddy and more
Diffstat (limited to 'nixos/modules/homelab/core/caddy.nix')
-rw-r--r--nixos/modules/homelab/core/caddy.nix16
1 files changed, 16 insertions, 0 deletions
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"
+ '';
+ };
+ };
+}