At the end of the environment.systemPackages I added the follolwing:
] ++ (builtins.filter (x: ! builtins.head (lib.options.getValues x.meta.broken)) (builtins.filter stdenv.lib.isDerivation (builtins.attrValues pkgs.kdeApplications)));
as when I did not have the attempt at the ‘broken’ code the nixos-rebuild failed due to a broken kde package. So that was my attempt at filtering only those not broken as per Nix packages manual section 2.1. When I try to build I get the following error:
building Nix... building the system configuration... error: attribute 'broken' missing, at /etc/nixos/settings/packages.nix:91:69 (use '--show-trace' to show detailed location information)
What am I doing wrong ? I have seen the above code in other example configuration files and it would have been ok except for the broken package I am trying to filter out.