{ pkgs, ... }: { home-manager.users.krizej.programs.firefox = { enable = true; policies = { DisableTelemetry = true; DisableFirefoxStudies = true; EnableTrackingProtection = { Value = true; Locked = true; Cryptomining = true; Fingerprinting = true; }; DisablePocket = true; DisableFirefoxAccounts = true; DisableAccounts = true; DisableFirefoxScreenshots = true; OverridePostUpdatePage = ""; DontCheckDefaultBrowser = true; DisplayBookmarksToolbar = "always"; DisplayMenuBar = "default-off"; SearchBar = "unified"; DefaultDownloadDirectory = "$HOME/downloads"; ExtensionSettings = { # ublock origin "uBlock0@raymondhill.net" = { install_url = "https://addons.mozilla.org/firefox/downloads/latest/ublock-origin/latest.xpi"; installation_mode = "force_installed"; }; # youtube redux "{2d4c0962-e9ff-4cad-8039-9a8b80d9b8b6}" = { install_url = "https://addons.mozilla.org/firefox/downloads/file/4224361/latest.xpi"; installation_mode = "force_installed"; }; # sponsorblock "sponsorBlocker@ajay.app" = { install_url = "https://addons.mozilla.org/firefox/downloads/file/4251917/latest.xpi"; installation_mode = "force_installed"; }; }; }; profiles.krizej = { id = 0; isDefault = true; search = { default = "envs.net - SearXNG"; force = true; engines = { "envs.net - SearXNG" = { urls = [{template = "https://searx.envs.net/searxng/search?q={searchTerms}";}]; icon = "https://envs.net/favicon.ico"; iconUpdateURL = "https://envs.net/favicon.ico"; updateInterval = 24 * 60 * 60 * 1000; definedAliases = ["@sx"]; }; # searx sometimes sucks "Google".metaData.alias = "@g"; "Wikipedia (en)".metaData.alias = "@w"; "Nix Packages" = { urls = [{template = "https://search.nixos.org/packages?channel=unstable&query={searchTerms}";}]; icon = "${pkgs.nixos-icons}/share/icons/hicolor/scalable/apps/nix-snowflake.svg"; definedAliases = ["@np"]; }; "Nix Options" = { urls = [{template = "https://search.nixos.org/options?channel=unstable&query={searchTerms}";}]; icon = "${pkgs.nixos-icons}/share/icons/hicolor/scalable/apps/nix-snowflake.svg"; definedAliases = ["@no"]; }; "Home Manger" = { urls = [{template = "https://home-manager-options.extranix.com/?release=master&query={searchTerms}";}]; icon = "https://home-manager-options.extranix.com/images/favicon.png"; iconUpdateURL = "https://home-manager-options.extranix.com/images/favicon.png"; updateInterval = 24 * 60 * 60 * 1000; definedAliases = ["@hm"]; }; "Arch Wiki" = { urls = [{template = "https://wiki.archlinux.org/index.php?search={searchTerms}";}]; icon = "https://wiki.archlinux.org/favicon.ico"; iconUpdateURL = "https://wiki.archlinux.org/favicon.ico"; updateInterval = 24 * 60 * 60 * 1000; definedAliases = ["@aw"]; }; # the rest can fuck off "Bing".metaData.hidden = true; "DuckDuckGo".metaData.hidden = true; }; }; settings = { "extensions.activeThemeID" = "firefox-compact-dark@mozilla.org"; "services.sync.prefs.sync.extensions.activeThemeID" = "false"; }; }; }; }