blob: b401fe0229542634e1858865165a40c85b5fff60 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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;
};
};
}
|