lol

Merge pull request #28481 from mpcsh/master

nixos/caddy: improve documentation

authored by

Peter Hoeg and committed by
GitHub
ecdabb1b 501f55af

+12 -2
+12 -2
nixos/modules/services/web-servers/caddy.nix
··· 5 5 let 6 6 cfg = config.services.caddy; 7 7 configFile = pkgs.writeText "Caddyfile" cfg.config; 8 - in 9 - { 8 + in { 10 9 options.services.caddy = { 11 10 enable = mkEnableOption "Caddy web server"; 12 11 13 12 config = mkOption { 13 + default = ""; 14 + example = '' 15 + example.com { 16 + gzip 17 + minify 18 + log syslog 19 + 20 + root /srv/http 21 + } 22 + ''; 23 + type = types.lines; 14 24 description = "Verbatim Caddyfile to use"; 15 25 }; 16 26