summaryrefslogtreecommitdiff
path: root/components/services/caddy.nix
diff options
context:
space:
mode:
authorLeonardo <noreply@leoflo.me>2026-03-18 17:50:23 +0100
committerLeonardo <noreply@leoflo.me>2026-03-18 17:50:23 +0100
commit1ca05819fef66045123c547e1041e9f165d54da9 (patch)
tree27802e72dd41f8ec0ea421bba360a4f14f570395 /components/services/caddy.nix
parent090be6f0e43986088c47777dab39b189a3f51027 (diff)
downloadnixos-1ca05819fef66045123c547e1041e9f165d54da9.tar.gz
nixos-1ca05819fef66045123c547e1041e9f165d54da9.zip
test caddy
Diffstat (limited to 'components/services/caddy.nix')
-rw-r--r--components/services/caddy.nix13
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!"
+ '';
+ };
+ };
+}