diff options
| author | Leonardo <noreply@leoflo.me> | 2026-03-18 17:50:23 +0100 |
|---|---|---|
| committer | Leonardo <noreply@leoflo.me> | 2026-03-18 17:50:23 +0100 |
| commit | 1ca05819fef66045123c547e1041e9f165d54da9 (patch) | |
| tree | 27802e72dd41f8ec0ea421bba360a4f14f570395 /components/services | |
| parent | 090be6f0e43986088c47777dab39b189a3f51027 (diff) | |
| download | nixos-1ca05819fef66045123c547e1041e9f165d54da9.tar.gz nixos-1ca05819fef66045123c547e1041e9f165d54da9.zip | |
test caddy
Diffstat (limited to 'components/services')
| -rw-r--r-- | components/services/caddy.nix | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/components/services/caddy.nix b/components/services/caddy.nix new file mode 100644 index 0000000..23a6965 --- /dev/null +++ b/components/services/caddy.nix @@ -0,0 +1,13 @@ +{lib, config, ...}: { + options.caddy.enable = lib.mkEnableOption "Caddy server"; + + config = lib.mkIf config.caddy.enable { + services.caddy = { + enable = true; + + virtualHosts."leoflo.me".extraConfig = '' + respond "Hello, world!" + ''; + }; + }; +} |
