home-config/nix-home-manager/firefox-nightly/policies.nix
b307172932ea5fc99dc9053ebd263cb9ae5a2b4c
· 3.9 KB · 130 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 | |
| 13 | EnableTrackingProtection = { |
| 14 | Value = true; |
| 15 | Locked = true; |
| 16 | Cryptomining = true; |
| 17 | Fingerprinting = true; |
| 18 | EmailTracking = true; |
| 19 | }; |
| 20 | UserMessaging = { |
| 21 | WhatsNew = false; |
| 22 | ExtensionRecommendations = false; |
| 23 | FeatureRecommendations = false; |
| 24 | UrlbarInterventions = false; |
| 25 | SkipOnboarding = true; |
| 26 | MoreFromMozilla = false; |
| 27 | Labs = false; |
| 28 | Locked = true; |
| 29 | }; |
| 30 | DisableAppUpdate = true; |
| 31 | DisableAccounts = true; |
| 32 | DisableFirefoxAccounts = true; |
| 33 | DisableFirefoxStudies = true; |
| 34 | DisablePocket = true; |
| 35 | DisableTelemetry = true; |
| 36 | AutofillAddressEnabled = false; |
| 37 | AutofillCreditCardEnabled = false; |
| 38 | DisableMasterPasswordCreation = true; |
| 39 | PasswordManagerEnabled = false; |
| 40 | PrimaryPassword = false; |
| 41 | OfferToSaveLogins = false; |
| 42 | NoDefaultBookmarks = true; |
| 43 | OverrideFirstRunPage = ""; |
| 44 | OverridePostUpdatePage = ""; |
| 45 | FirefoxHome = { |
| 46 | Search = true; |
| 47 | TopSites = true; |
| 48 | SponsoredTopSites = false; |
| 49 | Highlights = false; |
| 50 | Pocket = false; |
| 51 | SponsoredPocket = false; |
| 52 | Snippets = false; |
| 53 | Locked = true; |
| 54 | }; |
| 55 | SearchSuggestEnabled = true; |
| 56 | FirefoxSuggest = { |
| 57 | WebSuggestions = true; |
| 58 | SponsoredSuggestions = false; |
| 59 | ImproveSuggest = false; |
| 60 | Locked = true; |
| 61 | }; |
| 62 | PictureInPicture = lock-true; |
| 63 | HardwareAcceleration = true; |
| 64 | Certificates = { |
| 65 | ImportEnterpriseRoots = true; |
| 66 | }; |
| 67 | ExtensionSettings = { |
| 68 | #"*".installation_mode = "blocked"; |
| 69 | # uBlock Origin |
| 70 | "uBlock0@raymondhill.net" = { |
| 71 | install_url = "https://addons.mozilla.org/firefox/downloads/latest/ublock-origin/latest.xpi"; |
| 72 | installation_mode = "force_installed"; |
| 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 | # Sidebery |
| 100 | "{3c078156-979c-498b-8990-85f7987dd929}" = { |
| 101 | install_url = "https://addons.mozilla.org/firefox/downloads/latest/sidebery/latest.xpi"; |
| 102 | installation_mode = "normal_installed"; |
| 103 | }; |
| 104 | # TamperMonkey |
| 105 | "firefox@tampermonkey.net" = { |
| 106 | install_url = "https://addons.mozilla.org/firefox/downloads/latest/tampermonkey/latest.xpi"; |
| 107 | installation_mode = "force_installed"; |
| 108 | }; |
| 109 | # Floccus |
| 110 | "floccus@handmadeideas.org" = { |
| 111 | install_url = "https://addons.mozilla.org/firefox/downloads/latest/floccus/latest.xpi"; |
| 112 | installation_mode = "force_installed"; |
| 113 | }; |
| 114 | }; |
| 115 | Preferences = { |
| 116 | "browser.startup.homepage" = "https://d.in.rschanz.org"; |
| 117 | "extensions.activeThemeID" = { |
| 118 | Value = "firefox-compact-dark@mozilla.org"; |
| 119 | Status = "locked"; |
| 120 | }; |
| 121 | "toolkit.legacyUserProfileCustomizations.stylesheets" = lock-true; |
| 122 | "xpinstall.whitelist.required" = lock-true; |
| 123 | "dom.webgpu.enabled" = lock-true; |
| 124 | "media.eme.enabled" = lock-true; |
| 125 | "general.autoScroll" = lock-true; |
| 126 | "general.smoothScroll" = lock-true; |
| 127 | "browser.crashReports.unsubmittedCheck.autoSubmit2" = lock-false; |
| 128 | "browser.aboutConfig.showWarning" = lock-false; |
| 129 | }; |
| 130 | } |