{ config, pkgs, lib, ... }: let settings = { "browser.bookmarks.showMobileBookmarks" = true; "browser.search.isUS" = false; "browser.search.region" = "FR"; "browser.startup.homepage" = "https://code.sourcephile.fr"; "distribution.searchplugins.defaultLocale" = "fr-FR"; "general.useragent.locale" = "fr-FR"; "security.identityblock.show_extended_validation" = true; "toolkit.legacyUserProfileCustomizations.stylesheets" = true; }; in { programs.firefox = { profiles."rp4xy6ye.2021" = { id = 0; name = "2021"; inherit settings; userChrome = builtins.readFile firefox/userChrome.css; }; profiles."8y3d28fa.tor" = { id = 1; name = "tor"; inherit settings; userChrome = builtins.readFile firefox/userChrome.css; }; /* extensions = with pkgs.nur.repos.rycee.firefox-addons; [ https-everywhere privacy-badger ]; */ package = pkgs.wrapFirefox pkgs.firefox-unwrapped { /* nixExtensions = [ (pkgs.fetchFirefoxAddon { name = "ublock"; url = "https://addons.mozilla.org/firefox/downloads/file/3679754/ublock_origin-latest-an+fx.xpi"; sha256 = "0000000000000000000000000000000000000000000000000000"; }) (pkgs.fetchFirefoxAddon { name = "decentraleyes"; url = "https://addons.mozilla.org/firefox/downloads/file/1671300/decentraleyes-latest-an+fx.xpi"; sha256 = "0000000000000000000000000000000000000000000000000000"; }) ]; */ /* about:policies#documentation */ extraPolicies = { CaptivePortal = false; DisableFirefoxStudies = true; DisablePocket = true; DisableTelemetry = true; DisableFirefoxAccounts = true; FirefoxHome = { Pocket = false; Snippets = false; }; UserMessaging = { ExtensionRecommendations = false; SkipOnboarding = true; }; }; }; }; }