Unable to install Chrome extensions

I am unable to install Chrome extensions in Chrome or Brave from the Chrome web store.

I clicked the Add button, I saw the wheel spinning, then nothing happened. The wheel continues spinning forever.

What can I do?

I am on NixOS 23.11.

I don’t know why, but now it works. :sweat_smile:

Note that you may need to re-install your extensions if they’re installed manually when upgrading / switching.
Consider declaring these extensions in your configuration.nix: https://search.nixos.org/options?channel=unstable&show=programs.chromium.extensions&size=50&sort=relevance&type=packages&query=programs.chromium

This didn’t work for Brave. I don’t see my extensions in the browser.

Not quite sure why solution in link above isn’t working - it actually didn’t work on my side as well trying to setup smth this week.

If you’re using home-manager, try that one maybe:

{
  environment.systemPackages = with pkgs; [
    chromium
  ];

  home-manager = {
    users.${USER_NAME} = {
      programs = {
        # https://nixos.wiki/wiki/Chromium
        # https://github.com/NixOS/nixpkgs/blob/2104d00501cd78958519c5e5c3d3293368d7838d/nixos/modules/programs/chromium.nix
        # https://nix-community.github.io/home-manager/options.xhtml#opt-programs.chromium.extensions
        chromium = {
          enable = true;
          package = pkgs.chromium;

          extensions = [
            # malwarebytes browser guard
            # https://chromewebstore.google.com/detail/malwarebytes-browser-guar/ihcjicgdanjaechkgeegckofjjedodee
            "ihcjicgdanjaechkgeegckofjjedodee"

            # bitwarden
            # https://chromewebstore.google.com/detail/bitwarden-password-manage/nngceckbapebfimnlniiiahkandclblb
            "nngceckbapebfimnlniiiahkandclblb"

            # ublock origin
            # https://chromewebstore.google.com/detail/ublock-origin/cjpalhdlnbpafiamejdnhcphjbkeiagm
            "cjpalhdlnbpafiamejdnhcphjbkeiagm"
          ];
        };
      };
    };
  };
}

I am not using Chromium, I am using Brave. It is not the same thing. I searched, and I saw no configurable available for Brave in the Nix configuration file.

Anyway, my extensions are on the user data side, so I don’t see the benefits of adding their declaration to my Nix config. The extensions are in my profile, so upgrading to a new version does not cause any issue.