Excluding Gnome Extensions Not working/removing

Hi there, I was looking at this thread and the wiki page.

I am trying to remove all un-needed gnome extensions that I am not using.

I was trying this code:

environment.gnome.excludePackages = (with pkgs; [
      # for packages that are pkgs.*
      gnome-tour
      gnome-connections
      cheese # photo booth
      gedit # text editor
      yelp # help viewer
      file-roller # archive manager
      geary # email reader
      gnome-photos
      gnome-system-monitor
    ]) ++ (with pkgs.gnome; [
      # for packages that are pkgs.gnome.*
      gnome-maps
      gnome-music
      gnome-weather
    ]) ++ (with pkgs.gnomeExtensions; [
      # for packages that are pkgs.gnomeExtensions.*
      applications-menu
      auto-move-windows
      gtk4-desktop-icons-ng-ding
      launch-new-instance
      light-style
      native-window-placement
      next-up
      places-status-indicator
      removable-drive-menu
      screenshot-window-sizer
      window-list
      windownavigator
      workspace-indicator
      hide-top-bar
    ]);

Now some were removed, and others were not. I can still see them in the extensions app itself.

I had:

  • rebuild
  • garbage collected
  • rebooted

Is there another step I need to do? Or some other behaviour I need to account for?

Thank you.

environment.gnome.excludePackages only prevents the installation of packages that gnome.nix installs, which is none of the ones you list. All extensions installed by default are part of a single package:

ah, I got it, so I would need to exclude that package and then explicitly install what I need/want.

Thank you!

Hi @brnix do you know how to remove the gnome-extensions app from building ? I tried so far this : environment.gnome.excludePackages = (with pkgs; [
epiphany # web browser
cheese # webcam tool
geary # email reader
evince # document viewer
totem # video player
baobab
simple-scan # scanner
yelp
file-roller
seahorse
gnome-extension-manager
gnome-font-viewer
gnome-calendar
gnome-calculator
gnome-user-share
gnome-photos
gnome-tour
gnome-user-docs
gnome-browser-connector
gnome-console
gnome-connections
orca
gnome-online-accounts
snapshot
]) ++ (with pkgs.gnome; [
tali # poker game
iagno # go game
hitori # sudoku game
atomix # puzzle game
gnome-remote-desktop
pkgs.gnome-user-docs
gnome-shell-extensions
gnome-online-miners
gnome-characters
gnome-clocks
gnome-maps
gnome-logs
gnome-weather
gnome-software
gnome-contacts
gnome-music
]);

But it doesn’t remove the “Extensions” app

That is currently part of gnome.gnome-shell package so it cannot be removed.

If you really want, you could hide the launcher by adapting this snippet for org.gnome.Shell.Extensions.desktop.

1 Like

Oh okay thanks you very much !