diff options
Diffstat (limited to 'nixos/modules/homelab/core/caddy.nix')
| -rw-r--r-- | nixos/modules/homelab/core/caddy.nix | 16 |
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" + ''; + }; + }; +} |
