diff options
Diffstat (limited to 'home/profiles/firefox.nix')
-rw-r--r-- | home/profiles/firefox.nix | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/home/profiles/firefox.nix b/home/profiles/firefox.nix new file mode 100644 index 0000000..e74aaea --- /dev/null +++ b/home/profiles/firefox.nix @@ -0,0 +1,59 @@ +{ pkgs, lib, config, ... }: +{ + programs.firefox = { + enable = true; + profiles = { + default = { + extensions = with pkgs.nur.repos.rycee.firefox-addons; [ + pkgs.nur.repos.rycee.firefox-addons."1password-x-password-manager" + consent-o-matic + refined-github + sponsorblock + ublock-origin + ]; + settings = { + ## nix handle updates + "app.update.auto" = false; + "browser.bookmarks.showMobileBookmarks" = false; + "browser.compactmode.show" = true; + "browser.contentblocking.category" = "strict"; + "browser.search.countryCode" = "US"; + "browser.search.defaultenginename" = "DuckDuckGo"; + "browser.search.isUS" = true; + "browser.search.region" = "US"; + "browser.search.selectedEngine" = "DuckDuckGo"; + ## don't check if it's the default browser + "browser.shell.checkDefaultBrowser" = false; + "browser.startup.homepage" = "https://duckduckgo.com"; + "browser.urlbar.placeholderName" = "DuckDuckGo"; + ## keep this with ff 96 + "media.ffmpeg.vaapi.enabled" = true; + ## remove on ff 96 + "media.ffvpx.enabled" = false; + ## remove on ff 96 + "media.navigator.mediadatadecoder_vpx_enabled" = true; + "media.peerconnection.enabled" = true; + ## keep this with ff 96 + "media.rdd-ffmpeg.enabled" = true; + ## remove on ff 96 + "media.rdd-vpx.enabled" = false; + ## Block third-party cookies + "network.cookie.cookieBehavior" = 1; + "privacy.donottrackheader.enabled" = true; + "privacy.trackingprotection.enabled" = true; + "privacy.trackingprotection.socialtracking.enabled" = true; + + "font.name.monospace.x-western" = "Source Code Pro"; + "font.name.sans-serif.x-western" = "DejaVu Sans"; + "font.name.serif.x-western" = "DejaVu Serif"; + }; + + userChrome = '' + #TabsToolbar { + visibility: collapse; + } + ''; + }; + }; + }; +} |