{ inputs, pkgs, vars, ... }: { imports = [inputs.arkenfox.hmModules.default]; programs.firefox = { enable = true; arkenfox = { enable = true; version = "119.0"; }; profiles.Default = { extensions = with inputs.firefox-addons.packages."x86_64-linux"; [ bitwarden ublock-origin darkreader ]; 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"]; }; "Home Manager" = { urls = [ { template = "https://mipmip.github.io/home-manager-option-search"; params = [ { name = "query"; value = "{searchTerms}"; } ]; } ]; icon = "${pkgs.nixos-icons}/share/icons/hicolor/scalable/apps/nix-snowflake.svg"; definedAliases = ["@hm"]; }; "Searx" = { urls = [ { template = "https://paulgo.io/search"; params = [ { name = "q"; value = "{searchTerms}"; } ]; } ]; iconUpdateURL = "https://paulgo.io/favicon.ico"; definedAliases = ["@sx"]; }; "Amazon" = { urls = [ { template = "https://www.amazon.de/s"; params = [ { name = "k"; value = "{searchTerms}"; } ]; } ]; iconUpdateURL = "https://amazon.de/favicon.ico"; definedAliases = ["@a"]; }; "YouTube" = { urls = [ { template = "https://efy.piped.pages.dev/results"; params = [ { name = "search_query"; value = "{searchTerms}"; } ]; } ]; iconUpdateURL = "https://piped.video/favicon.ico"; definedAliases = ["yt"]; }; }; search.force = true; search.default = "Searx"; settings = { "dom.security.https_only_mode" = true; "browser.download.panel.shown" = true; "signon.rememberSignons" = false; }; arkenfox = { enable = true; "0000".enable = true; }; }; }; xdg.mimeApps.defaultApplications = { "text/html" = ["firefox.desktop"]; "text/xml" = ["firefox.desktop"]; "x-scheme-handler/http" = ["firefox.desktop"]; "x-scheme-handler/https" = ["firefox.desktop"]; }; }