{ config, pkgs, ... }: { # password-store extensions for browsers # you need to install the browser extension for this to work # https://github.com/browserpass/browserpass-extension programs.browserpass = { enable = true; browsers = [ # "chrome" # "chromium" "firefox" ]; }; programs.firefox = { enable = true; # package = pkgs.librewolf; configPath = "${config.xdg.configHome}/mozilla/firefox"; package = pkgs.firefox.override { nativeMessagingHosts = [ pkgs.tridactyl-native pkgs.ff2mpv ]; }; policies = { DisableTelemetry = true; DisableFirefoxStudies = true; ExtensionSettings = { # Catpuccin Mocha - Lavender "{8446b178-c865-4f5c-8ccc-1d7887811ae3}" = { install_url = "https://addons.mozilla.org/firefox/downloads/latest/catppuccin-mocha-lavender-git/latest.xpi"; installation_mode = "force_installed"; }; # Tridactyl "tridactyl.vim@cmcaine.co.uk" = { install_url = "https://addons.mozilla.org/firefox/downloads/latest/tridactyl-vim/latest.xpi"; installation_mode = "force_installed"; }; # uBlock Origin "uBlock0@raymondhill.net" = { install_url = "https://addons.mozilla.org/firefox/downloads/latest/ublock-origin/latest.xpi"; installation_mode = "force_installed"; }; # Bitwarden "{446900e4-71c2-419f-a6a7-df9c091e268b}" = { install_url = "https://addons.mozilla.org/firefox/downloads/latest/bitwarden-password-manager/latest.xpi"; installation_mode = "force_installed"; }; # Dark Reader "addon@darkreader.org" = { install_url = "https://addons.mozilla.org/firefox/downloads/latest/darkreader/latest.xpi"; installation_mode = "force_installed"; }; # ff2mpv "ff2mpv@yossarian.net" = { install_url = "https://addons.mozilla.org/firefox/downloads/ff2mpv/darkreader/latest.xpi"; installation_mode = "force_installed"; }; }; FirefoxHome = { "Search" = false; }; HardwareAcceleration = true; Preferences = { "browser.preferences.defaultPerformanceSettings.enabled" = false; "browser.startup.homepage" = "about:home"; "browser.toolbar.bookmarks.visibility" = "newtab"; "browser.toolbars.bookmarks.visibility" = "newtab"; "browser.urlbar.suggest.bookmark" = false; "browser.urlbar.suggest.engines" = false; "browser.urlbar.suggest.history" = false; "browser.urlbar.suggest.openpage" = false; "browser.urlbar.suggest.recentsearches" = false; "browser.urlbar.suggest.topsites" = false; "browser.warnOnQuit" = false; "browser.warnOnQuitShortcut" = false; "places.history.enabled" = "false"; "privacy.resistFingerprinting" = true; "privacy.resistFingerprinting.autoDeclineNoUserInputCanvasPrompts" = true; }; }; }; }