Cannot enable dash-to-dock gnome extension

I have this in /etc/nixos/configuration.nix:

{
  nixpkgs.config.firefox.enableGnomeExtensions = true;
  services.gnome.chrome-gnome-shell.enable = true;
  #...
  environment.systemPackages = with pkgs; [
    gnomeExtensions.dash-to-dock
 ];
}

Then sudo nixos-rebuild switch and relogin.

And I have done this:

$ gnome-extensions list
appindicatorsupport@rgcjonas.gmail.com
apps-menu@gnome-shell-extensions.gcampax.github.com
auto-move-windows@gnome-shell-extensions.gcampax.github.com
dash-to-dock@micxgx.gmail.com
drive-menu@gnome-shell-extensions.gcampax.github.com
launch-new-instance@gnome-shell-extensions.gcampax.github.com
native-window-placement@gnome-shell-extensions.gcampax.github.com
places-menu@gnome-shell-extensions.gcampax.github.com
screenshot-window-sizer@gnome-shell-extensions.gcampax.github.com
user-theme@gnome-shell-extensions.gcampax.github.com
window-list@gnome-shell-extensions.gcampax.github.com
windowsNavigator@gnome-shell-extensions.gcampax.github.com
workspace-indicator@gnome-shell-extensions.gcampax.github.com

[roman@msi-laptop:~]$ gnome-extensions enable dash-to-dock@micxgx.gmail.com

When looking in Firefox, it shows this extension is outdated:

Then I click in firefox on “OUTDATED” and install from here. But still it is not enabled.

What version of Nixpkgs are you on? It has the latest version on NixOS unstable:

$ nix-info -m
 - system: `"x86_64-linux"`
 - host os: `Linux 5.10.79, NixOS, 21.05.4116.46251a79f75 (Okapi)`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.3.16`
 - channels(root): `"nixos-21.05.4116.46251a79f75"`
 - channels(roman): `""`
 - nixpkgs: `/nix/var/nix/profiles/per-user/root/channels/nixos`

Right, GNOME has limited support on the stable NixOS. You should be able to pull the extension from nixos-unstable, which has an up to date version.

Though, for this particular extension, installing it from the extension portal should work too. I am not sure if clicking the “Outdated” button will work but the green “Update this extension” button seems to trigger an installation dialogue for me (on a different extension that has not yet been updated in NixOS unstable).

1 Like