{ config, pkgs, theme, ... }: { imports = [ ./themes/${theme}/firefox-theme.nix ]; programs.firefox = { enable = true; profiles.default = { isDefault = true; name = "default"; # https://nur.nix-community.org/repos/rycee/ extensions = with pkgs.nur.repos.rycee.firefox-addons; [ privacy-badger decentraleyes darkreader ublock-origin privacy-redirect link-cleaner adnauseam censor-tracker ]; search.default = "DuckDuckGo"; search.force = true; search.order = [ "DuckDuckGo" ]; search.engines = { "Nix Packages" = { urls = [{ template = "https://search.nixos.org/packages"; params = [ { name = "type"; value = "packages"; } { name = "query"; value = "{searchTerms}"; } ]; }]; icon = "${pkgs.nixos-icons}/share/icons/hicolor/scalable/apps/nix-snowflake.svg"; definedAliases = [ "@np" ]; }; "NixOS Wiki" = { urls = [{ template = "https://nixos.wiki/index.php?search={searchTerms}"; }]; iconUpdateURL = "https://nixos.wiki/favicon.png"; updateInterval = 24 * 60 * 60 * 1000; # every day definedAliases = [ "@nw" ]; }; "Home Manager Options" = { urls = [{ template = "https://mipmip.github.io/home-manager-option-search/?query={searchTerms}"; }]; icon = "${pkgs.nixos-icons}/share/icons/hicolor/scalable/apps/nix-snowflake.svg"; definedAliases = [ "@hm" ]; }; }; }; }; }