Upgrading NixOS to 21.05, undefined variable 'kdeApplications'

After switching to the 21.05 channel, nixos-rebuild switch --upgrade now gives me:

error: undefined variable 'kdeApplications' at /home/amy/dotWombat/nixos/packages.nix:104:5
(use '--show-trace' to show detailed location information)

I have read through the release notes, but I don’t see the fix for this.

I have system.stateVersion = "20.03". I didn’t see anything in the release notes saying I should change this, but perhaps I should?

Relevant part of my configuration looks like this:

{ config, pkgs, options, ... }:

with pkgs;
{
  . . .

  environment.systemPackages = [
    . . .
    kdeApplications.okular
    kdeApplications.spectacle # replaced ksnapshot
    . . .
  ];
}

1 Like

D’oh! Just realised I need to switch to 12.05 when I use the web search for packages. I changed kdeApplications.okular to libsForQt5.okular, and likewise for spectacle, and I’m all set.

2 Likes