NixOS 25.05 upgrade issue: pkgs.adwaita-icon-theme

I changed my nix-channel to 25.05 Stable, and I’m met with the following error when running sudo nixos-rebuild switch --upgrade to upgrade from 24.11 to 25.05:


       … while evaluating the attribute 'adwaita-icon-theme'
         at /nix/store/5zf6dmmp2pqg6dyjr32yb6gldnhg13rv-nixos-25.05/nixos/pkgs/desktops/gnome/default.nix:42:3:
           41|   accerciser = throw "The ‘gnome.accerciser’ was moved to top-level. Please use ‘pkgs.accerciser’ directly."; # Added on 2024-06-22.
           42|   adwaita-icon-theme = throw "The ‘gnome.adwaita-icon-theme’ was moved to top-level. Please use ‘pkgs.adwaita-icon-theme’ directly."; # Added on 2024-06-22.
             |   ^
           43|   aisleriot = throw "The ‘gnome.aisleriot’ was moved to top-level. Please use ‘pkgs.aisleriot’ directly."; # Added on 2024-08-11.

       … while calling the 'throw' builtin
         at /nix/store/5zf6dmmp2pqg6dyjr32yb6gldnhg13rv-nixos-25.05/nixos/pkgs/desktops/gnome/default.nix:42:24:
           41|   accerciser = throw "The ‘gnome.accerciser’ was moved to top-level. Please use ‘pkgs.accerciser’ directly."; # Added on 2024-06-22.
           42|   adwaita-icon-theme = throw "The ‘gnome.adwaita-icon-theme’ was moved to top-level. Please use ‘pkgs.adwaita-icon-theme’ directly."; # Added on 2024-06-22.
             |                        ^
           43|   aisleriot = throw "The ‘gnome.aisleriot’ was moved to top-level. Please use ‘pkgs.aisleriot’ directly."; # Added on 2024-08-11.

       error: The ‘gnome.adwaita-icon-theme’ was moved to top-level. Please use ‘pkgs.adwaita-icon-theme’ directly.

I don’t have gnome.adwaita-icon-theme in my config file, but I’m guessing another pkg is using it?

What can I do to work around this issue?

The easiest solution is to simply add the missing theme to your config.

environment.systemPackages = with pkgs; [
  adwaita-icon-theme
];

I’ve added it into my systemPackages and the same problem still persists. Strangely, I’ve removed pkgs.aisleriot from my config file, yet it still shows up.

This was the problem. Removing nix-software-center has allowed me to move forward in the upgrade.

2 Likes

Glad you got that working now. You should mark your post as the solution, so if anyone stumbles over it, they’ll see that in your OP too.

1 Like