| 12345678910111213141516 |
- { config, pkgs, ... }:
- {
- services.caddy = {
- enable = true;
- package = pkgs.caddy.withPlugins {
- plugins = [ "github.com/caddy-dns/[email protected]" ];
- hash = "sha256-Zls+5kWd/JSQsmZC4SRQ/WS+pUcRolNaaI7UQoPzJA0=";
- };
- environmentFile = config.age.secrets."odin/services/caddy".path;
- globalConfig = ''
- acme_dns cloudflare {env.CF_API_TOKEN}
- '';
- };
- }
|