Cannot activate the GNOME extensions

These are both enabled by default by services.xserver.desktopManager.gnome.enable = true; and I can confirm it works for me.

What variant of Firefox do you use and how did you install it? Firefox needs to be installed using environment.systemPackages to respect nixpkgs.config.firefox and it cannot be firefox-bin. And if you are instantiating Nixpkgs yourself (e.g. using import <nixpkgs> {}), Firefoxen from that package set will not see that option, unless you pass it in yourself as well:

import <nixpkgs> {
  config = {
    firefox.enableGnomeExtensions = true;
  };
}

Or you can pass the configuration directly to Firefox as follows and that will work with every installation method:

(firefox.override (args: args // {
  cfg = args.cfg or {} // {
    enableGnomeExtensions = true;
  };
}))
2 Likes