# Custom Caddy build with rate-limit plugin. # Uses nixpkgs' caddy.withPlugins (available since nixpkgs 2024-12-10). # The hash must be updated after the first build attempt — # nix will error and tell you the correct hash. final: prev: { caddy-custom = prev.caddy.withPlugins { plugins = [ "github.com/mholt/caddy-ratelimit@v0.0.3" ]; hash = "sha256-AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA="; }; }