{
  pkgs,
  nur,
  ...
}: {
  home.sessionVariables = {
    BROWSER = "librewolf";
  };
  stylix.targets.librewolf = {
    colorTheme.enable = true;
    profileNames = ["main"];
  };
  home.packages = [pkgs.ff2mpv-rust];
  programs.librewolf = {
    nativeMessagingHosts = [
      pkgs.ff2mpv-rust
    ];
    enable = true;
    profiles = {
      main = {
        search = {
          engines = {
            searxng = {
              name = "Kat SearxNG";
              urls = [
                {
                  template = "https://search.kittywit.ch/search";
                  params = [
                    { name = "q"; value = "{searchTerms}"; }
                  ];
                  iconMapObj."16" = "/static/themes/simple/img/favicon.png";
                  definedAliases = [ "@searx" ];
                }
              ];
            };
          };
          default = "searxng";
        };
        id = 0;
        isDefault = true;
        containersForce = true;
        extensions = {
          packages = with nur.repos.rycee.firefox-addons; [
            display-_anchors
            pronoundb
            sponsorblock
            link-cleaner
            canvasblocker
            brotab
            a11ycss
            view-image
            wappalyzer
            auto-tab-discard
            bitwarden
            asbplayer
            darkreader
            decentraleyes
            clearurls
            df-youtube
            old-reddit-redirect
            reddit-enhancement-suite
            refined-github
            stylus
            temporary-containers
            multi-account-containers
            dearrow
            betterttv
            violentmonkey
            return-youtube-dislikes
            ff2mpv
            terms-of-service-didnt-read
            web-clipper-obsidian
            yomitan
          ];
          force = true;
        };
      };
    };
  };
}
