{ pkgs, lib, ... }: let type = let jsonFormat = pkgs.formats.json { }; in jsonFormat.type; in { inherit type; options = { policies = lib.mkOption { inherit type; default = { }; description = "[See list of policies](https://mozilla.github.io/policy-templates/)."; example = { DefaultDownloadDirectory = "\${home}/Downloads"; BlockAboutConfig = true; ExtensionSettings = { "uBlock0@raymondhill.net" = { install_url = "https://addons.mozilla.org/firefox/downloads/latest/ublock-origin/latest.xpi"; installation_mode = "force_installed"; default_area = "menupanel"; private_browsing = true; }; }; }; }; }; }