hylonix/modules/home-manager/gecko-browser/gecko-lib/policies.nix

33 lines
770 B
Nix
Raw Normal View History

{ 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;
};
};
};
};
};
}