-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathfirefox.nix
52 lines (47 loc) · 1.55 KB
/
firefox.nix
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
self: super:
let
inherit (super) firefox;
inherit (self) keepassxc /*fetchFirefoxAddon*/;
in
firefox.override {
# See https://github.com/mozilla/policy-templates or
# about:policies#documentation for more possibilities.
extraPolicies = {
CaptivePortal = false;
DisableFirefoxStudies = true;
DisablePocket = true;
DisableTelemetry = true;
DisableFirefoxAccounts = true;
FirefoxHome = {
Search = false;
TopSites = false;
Highlights = false;
Pocket = false;
Snippets = false;
};
UserMessaging = {
ExtensionRecommendations = false;
SkipOnboarding = true;
};
};
extraPrefs = ''
'';
# Note: NixOS 21.11 rejects if this attribute is even defined, when the
# Firefox is not ESR.
# Note: If this were non-empty, then manually-installed addons would be
# disabled, which I think means that addons installed via users'
# home-manager (e.g. via NUR) would be disabled, which means that addons
# would not be upgraded to their latest versions because specifying them
# here requires pinning them to a version unlike with home-manager+NUR where
# the versions are upgraded.
# nixExtensions = [
# # (fetchFirefoxAddon {
# # name = ""; # Has to be unique!
# # url = "https://addons.mozilla.org/firefox/downloads/.xpi";
# # sha256 = "";
# # })
# ];
nativeMessagingHosts = [
keepassxc # Allow the KeePassXC-Browser extension to communicate, when a user installed it.
];
}