{ pkgs, username, ... }: { programs.firefox = { enable = true; package = pkgs.wrapFirefox pkgs.firefox-unwrapped { extraPolicies = { ExtensionSettings = {}; }; nativeMessagingHosts = [pkgs.tridactyl-native]; }; profiles.${username} = { extensions = with pkgs.nur.repos.rycee.firefox-addons; [ privacy-badger ublock-origin tridactyl ]; settings = { "browser.startup.homepage" = "https://google.it"; "browser.search.region" = "IT"; "browser.search.isUS" = false; "distribution.searchplugins.defaultLocale" = "it-IT"; "general.useragent.locale" = "it-IT"; "browser.bookmarks.showMobileBookmarks" = true; "browser.download.folderList" = 2; "browser.download.lastDir" = "/home/${username}/Downloads/"; "browser.shell.checkDefaultBrowser" = false; }; search.force = true; search.engines = { "Searx" = { urls = [ { template = "https://search.aciceri.dev/search"; params = [ { name = "q"; value = "{searchTerms}"; } ]; } ]; }; }; }; }; home.sessionVariables = { MOZ_ENABLE_WAYLAND = 1; NIXOS_OZONE_WL = 1; }; }