blob: a8616943c7b831d1e2ce008487e199ed5023d454 [file] [log] [blame]
Skyler Grey8b0e52f2023-05-01 21:31:07 +00001{ config, pkgs, lib, ... }: {
Skyler Grey4f3e6062023-03-04 01:29:29 +00002 services.caddy.enable = true;
Skyler Grey40ab9af2023-05-20 18:03:53 +02003 services.caddy.configFile = lib.pipe ./caddy/caddyfile.nix [
4 import
5 builtins.toJSON
6 (pkgs.writeText "caddy.json")
7 ];
Skyler Grey8b0e52f2023-05-01 21:31:07 +00008 services.caddy.package = pkgs.callPackage ../packages/caddy.nix {
9 vendorSha256 = "sha256-3KcoOAB+YkOU8qKM75uQo58/dljRBmP25dionr9r2dc=";
10 };
11 services.caddy.user = "root";
12 systemd.services.caddy.serviceConfig.ProtectHome = lib.mkForce false;
Skyler Grey4f3e6062023-03-04 01:29:29 +000013}