aboutsummaryrefslogtreecommitdiff
path: root/profiles/disableStudies.nix
diff options
context:
space:
mode:
Diffstat (limited to 'profiles/disableStudies.nix')
-rw-r--r--profiles/disableStudies.nix25
1 files changed, 25 insertions, 0 deletions
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;
+ };
+ };
+}