_utils.mkNginxJSON

filename<str> -> freeformAttrset ==> attrset

Simple wrapper around mkNginxFile that takes in an attrset and formats it as JSON.

Note that the function signature is different in that it doesn't take in only one attrset. This may change in the future.

Example

services.nginx.virtualHosts."balls.org" = _utils.mkVhost {
  locations."/" = _utils.mkNginxJSON "index.json" {
    arbitraryAttribute = "arbitraryValue";
    doTheyKnow = false;
  };
};