{
  inputs,
  pkgs,
  ...
}: {
  imports = [inputs.zen-browser.homeModules.beta];
  programs.zen-browser = {
    enable = true;
    profiles.default = {
      extensions = {
        packages = with pkgs.nur.repos.rycee.firefox-addons; [
          ublock-origin
          video-downloadhelper
          multi-account-containers
          noscript
        ];
      };
      search = {
        force = true;
        default = "startpage";
        engines = {
          nixos-options = {
            name = "NixOS Options";
            urls = [{template = "https://search.nixos.org/options?channel=unstable&query={searchTerms}";}];
            definedAliases = ["@no"];
          };
          nixos-packages = {
            name = "NixOS Packages";
            urls = [{template = "https://search.nixos.org/packages?channel=unstable&query={searchTerms}";}];
            definedAliases = ["@np"];
          };
          nixos-wiki = {
            name = "NixOS Wiki";
            urls = [{template = "https://wiki.nixos.org/w/index.php?search={searchTerms}";}];
            definedAliases = ["@nw"];
          };
          startpage = {
            name = "Startpage";
            urls = [
              {
                method = "POST";
                template = "https://www.startpage.com/sp/search";
                params = [
                  {
                    name = "query";
                    value = "{searchTerms}";
                  }
                  {
                    name = "prfe";
                    value = "26b77e0ef13273610e32813c3233d92429c5426b277dcad41b2f2d38f94a44e839aa1abc7cf4223afd5872a185d5c9976949b9b1f0f83bbde3f9d4ac610d8fffa03947db6336c7a249ef62c2824adfd1";
                  }
                ];
              }

              {
                type = "application/x-suggestions+json";
                template = "https://www.startpage.com/osuggestions?query={searchTerms}";
              }
            ];
            definedAliases = ["@sp"];
          };
        };
      };
      settings = {
        "browser.download.useDownloadDir" = false;
        "browser.ml.linkPreview.enabled" = true;
        "browser.ml.linkPreview.optin" = true;
        "browser.newtabpage.activity-stream.asrouter.userprefs.cfr.addons" = true;
        "browser.newtabpage.activity-stream.asrouter.userprefs.cfr.features" = true;
        "browser.search.suggest.enabled" = true;
        "browser.search.suggest.enabled.private" = true;
        "browser.translations.neverTranslateLanguages" = "de";
        "dom.security.https_only_mode" = true;
        "network.trr.mode" = 3;
        "network.trr.uri" = "https://mozilla.cloudflare-dns.com/dns-query";
        "privacy.history.custom" = false;
        "privacy.trackingprotection.allow_list.convenience.enabled" = true;
        "zen.tabs.select-recently-used-on-close" = false;
        "zen.tabs.show-newtab-vertical" = false;
        "zen.view.show-newtab-button-top" = false;
        "zen.workspaces.continue-where-left-off" = true;

        "browser.contentblocking.category" = "strict";
        "network.http.referer.disallowCrossSiteRelaxingDefault.top_navigation" = true;
        "network.lna.blocking" = true;
        "privacy.annotate_channels.strict_list.enabled" = true;
        "privacy.bounceTrackingProtection.mode" = 1;
        "privacy.fingerprintingProtection" = true;
        "privacy.query_stripping.enabled" = true;
        "privacy.query_stripping.enabled.pbmode" = true;
        "privacy.trackingprotection.consentmanager.skip.pbmode.enabled" = false;
        "privacy.trackingprotection.emailtracking.enabled" = true;
        "privacy.trackingprotection.enabled" = true;
        "privacy.trackingprotection.socialtracking.enabled" = true;
      };
    };
  };
}
