services.caddy.dataDir
The data directory for caddy.
If left as the default value this directory will automatically be created before the Caddy server starts, otherwise you are responsible for ensuring the directory exists with appropriate ownership and permissions.
Caddy v2 replaced CADDYPATH with XDG directories.
See https://caddyserver.com/docs/conventions#file-locations.
- Type
absolute path- Default
"/var/lib/caddy"- Declared
- <nixpkgs/nixos/modules/services/web-servers/caddy/default.nix>