Issues with gnome.excludePacakges - error: undefined variable

Hi there, I am using the following which had always worked up until my last update (using unstable):

    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
      gnome-photos
      gnome-system-monitor
      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 for some reason, I am getting this error:

error: undefined variable 'gnome-maps'

If I commented out that package, it moved down to ‘gnome-music.’ I double-checked, and the package does exist. Now I know many gnome packages are no longer accessed via pkgs.gnome.gnome-pkg-name.

I tried changing the environment.gnome.excludePackages = (with pkgs; [ some something like environment.excludePackages = (with pkgs; [ which I did not expect to work. I also checked out the wiki, and it shows this same method (currently).

I suspect I (and maybe the wiki?) just need to update a chunk of code.

Cheers.

The dissolution of gnome scope was completed so the packages should be picked directly from pkgs. But in your example, you are already doing that. Are you sure that that the undefined variable comes from the environment.gnome.excludePackages definition? If yes, maybe check if pkgs is actually Nixpkgs instance.

The NixOS options names remained unchanged.

I have zero references to gnome-maps anywhere else in my repo. So I am very confident (or naive!). :slight_smile:

image

They other thing is, before updating my flake.lock and trying to rebuild, this worked (and had been unmodified for some time).