nixos/terminfo: Improve snippet generating the “all terminfo” list

- Avoid false-positives on package sets that contain a `terminfo` derivation,
like `haskellPackages` and `sbclPackages`.
- Directly provide a list of names that can be used to update the NixOS module,
rather than a list of derivations which is hard to read in the REPL.

nicoo 150b2ff4 6fdc291d

+4 -1
+4 -1
nixos/modules/config/terminfo.nix
··· 16 16 17 17 config = { 18 18 19 - # can be generated with: filter (drv: (builtins.tryEval (drv ? terminfo)).value) (attrValues pkgs) 19 + # can be generated with: 20 + # attrNames (filterAttrs 21 + # (_: drv: (builtins.tryEval (isDerivation drv && drv ? terminfo)).value) 22 + # pkgs) 20 23 environment.systemPackages = mkIf config.environment.enableAllTerminfo (map (x: x.terminfo) (with pkgs; [ 21 24 alacritty 22 25 foot