From 367b0c114f38d5c332f5ee971ad13dd69e302dec Mon Sep 17 00:00:00 2001 From: tilpner Date: Mon, 15 Jun 2020 09:53:06 +0200 Subject: WIP towards module based configuration --- profiles/disableStudies.nix | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 profiles/disableStudies.nix (limited to 'profiles/disableStudies.nix') diff --git a/profiles/disableStudies.nix b/profiles/disableStudies.nix new file mode 100644 index 0000000..b401fe0 --- /dev/null +++ b/profiles/disableStudies.nix @@ -0,0 +1,25 @@ +{ config, lib, ... }: with lib; { + options.features.disableStudies = mkOption { + type = types.bool; + default = false; + description = '' + Firefox Shield Studies are meant to allow Mozilla to perform A/B testing + on Firefox users. + Studies have been used in the past to introduce surprising behaviour [1], + and we may want to prevent that from happening to our users. + + [1]: https://blog.mozilla.org/firefox/update-looking-glass-add/ + https://mozilla.github.io/normandy/user/end_user_interaction.html#opt-out-preference + ''; + }; + + config = mkIf config.features.disableStudies { + policies = { + DisableFirefoxStudies = true; + }; + + preferences = { + app.shield.optoutstudies.enabled = false; + }; + }; +} -- cgit v1.2.3