users/ryan/zen/zenPolicies.nix

e82c5b326afdc91fb30f5d83136ce94a64efc66f · 4.2 KB · 126 lines raw

1 let
2 lock-false = {
3 Value = false;
4 Status = "locked";
5 };
6 lock-true = {
7 Value = true;
8 Status = "locked";
9 };
10 in
11 {
12 EnableTrackingProtection = {
13 Value = true;
14 Locked = true;
15 Cryptomining = true;
16 Fingerprinting = true;
17 EmailTracking = true;
18 };
19 UserMessaging = {
20 WhatsNew = false;
21 ExtensionRecommendations = false;
22 FeatureRecommendations = false;
23 UrlbarInterventions = false;
24 SkipOnboarding = true;
25 MoreFromMozilla = false;
26 Labs = false;
27 Locked = true;
28 };
29 DisableAppUpdate = true;
30 DisableAccounts = true;
31 DisableFirefoxAccounts = true;
32 DisableFirefoxStudies = true;
33 DisablePocket = true;
34 DisableTelemetry = true;
35 AutofillAddressEnabled = false;
36 AutofillCreditCardEnabled = false;
37 DisableMasterPasswordCreation = true;
38 PasswordManagerEnabled = false;
39 PrimaryPassword = false;
40 OfferToSaveLogins = false;
41 NoDefaultBookmarks = true;
42 OverrideFirstRunPage = "";
43 OverridePostUpdatePage = "";
44 FirefoxHome = {
45 Search = true;
46 TopSites = true;
47 SponsoredTopSites = false;
48 Highlights = false;
49 Pocket = false;
50 SponsoredPocket = false;
51 Snippets = false;
52 Locked = true;
53 };
54 SearchSuggestEnabled = true;
55 FirefoxSuggest = {
56 WebSuggestions = true;
57 SponsoredSuggestions = false;
58 ImproveSuggest = false;
59 Locked = true;
60 };
61 PictureInPicture = lock-true;
62 HardwareAcceleration = true;
63 Certificates = {
64 ImportEnterpriseRoots = true;
65 };
66 ExtensionSettings = {
67 #"*".installation_mode = "blocked";
68 # uBlock Origin
69 "uBlock0@raymondhill.net" = {
70 install_url = "https://addons.mozilla.org/firefox/downloads/latest/ublock-origin/latest.xpi";
71 installation_mode = "force_installed";
72 private_browsing = true;
73 };
74 # Bitwarden
75 "{446900e4-71c2-419f-a6a7-df9c091e268b}" = {
76 install_url = "https://addons.mozilla.org/firefox/downloads/latest/bitwarden-password-manager/latest.xpi";
77 installation_mode = "normal_installed";
78 };
79 # SponsorBlock
80 "sponsorBlocker@ajay.app" = {
81 install_url = "https://addons.mozilla.org/firefox/downloads/latest/sponsorblock/latest.xpi";
82 installation_mode = "force_installed";
83 };
84 # DeArrow
85 "deArrow@ajay.app" = {
86 install_url = "https://addons.mozilla.org/firefox/downloads/latest/dearrow/latest.xpi";
87 installation_mode = "force_installed";
88 };
89 # Return Youtube Dislike
90 "{762f9885-5a13-4abd-9c77-433dcd38b8fd}" = {
91 install_url = "https://addons.mozilla.org/firefox/downloads/latest/return-youtube-dislikes/latest.xpi";
92 installation_mode = "force_installed";
93 };
94 # Youtube Nonstop
95 "{0d7cafdd-501c-49ca-8ebb-e3341caaa55e}" = {
96 install_url = "https://addons.mozilla.org/firefox/downloads/latest/youtube-nonstop/latest.xpi";
97 installation_mode = "force_installed";
98 };
99 # TamperMonkey
100 "firefox@tampermonkey.net" = {
101 install_url = "https://addons.mozilla.org/firefox/downloads/latest/tampermonkey/latest.xpi";
102 installation_mode = "force_installed";
103 };
104 # Floccus
105 "floccus@handmadeideas.org" = {
106 install_url = "https://addons.mozilla.org/firefox/downloads/latest/floccus/latest.xpi";
107 installation_mode = "force_installed";
108 };
109 # Mailvelope
110 "jid1-AQqSMBYb0a8ADg@jetpack" = {
111 install_url = "https://addons.mozilla.org/firefox/downloads/latest/mailvelope/latest.xpi";
112 installation_mode = "force_installed";
113 };
114 };
115 Preferences = {
116 "xpinstall.whitelist.required" = lock-true;
117 "dom.webgpu.enabled" = lock-true;
118 "media.eme.enabled" = lock-true;
119 "general.autoScroll" = lock-true;
120 "general.smoothScroll" = lock-true;
121 "browser.crashReports.unsubmittedCheck.autoSubmit2" = lock-false;
122 "browser.aboutConfig.showWarning" = lock-false;
123 "media.videocontrols.picture-in-picture.enable-when-switching-tabs.enabled" = lock-true;
124 };
125 }
126