Edit configuration.nix using Kate

That was exactly what was happening. Replacing kate with kdePackages.kate fixed the problem. Thank you so much for your help!

For any future readers, the exact changes needed for plasma 6 are:

security.polkit.enable = true;
environment.systemPackages = with pkgs; [
   kdePackages.ktexteditor
   kdePackages.kate
  ];
2 Likes