Listing available kernels fails

Following the Linux Kernel wiki page instructions on how to list kernels, the repl immediately barfs out all kinds of errors. It’s a huge list, I think it doesn’t do much good if I paste the litany of errors.

My channel is 22.05. In short, after nix repl, :l <nixpkgs> and then pkgs.linuxPackages I see message about broken packages which I should allow with export NIXPKGS_ALLOW_BROKEN=1 and export NIXPKGS_ALLOW_UNFREE=1 (although I do have nixpkgs.config.allowUnfree = true; in my configuration.nix.

But ok, let me just post two errors that tell me to set those env vars:

«derivation «error: error: Package ‘nvidia-x11-390.151-5.15.74’ in /nix/store/4pgxxnvk1gl6xb7xhqv8y6smv01b2jnk-nixos-22.05/nixos/pkgs/os-specific/linux/nvidia-x11/generic.n
ix:115 has an unfree license (‘unfreeRedistributable’), refusing to evaluate.`


nvidiabl = «derivation /nix/store/71va8xh05kfyf7zsglf4c0jq0yr5yyw1-nvidiabl-2020-10-01-5.15.74.drv»; oci-seccomp-bpf-hook = «derivation /nix/store/3qs1bcr3lypnw9p63w1nx6m1q0k2lmp2-oci-seccomp-bpf
-hook-1.2.5.drv»; odp-dpdk = «derivation /nix/store/81ppr6xqqdilj7gkcnvsmw18nlnmfkbp-odp-dpdk-»; openafs = «derivation /nix/store/bcxjrirwnxl3y2vf7jv6j5lz99gf00m6-openafs-»; openafs_1_8 = «deriva
tion /nix/store/bcxjrirwnxl3y2vf7jv6j5lz99gf00m6-openafs-»; openafs_1_9 = «derivation «error: error: Package ‘openafs-1.9.1-5.15.74’ in /nix/store/4pgxxnvk1gl6xb7xhqv8y6smv01b2jnk-nixos-22.05/nixos/pkgs/servers/openafs
/1.9/module.nix:57 is marked as broken, refusing to evaluate

These are just two small snippets from many many similar kinds of outputs. After I set both env vars, I see the following:

I’m very new to Nix. How can I list linux packages so I know which one to choose and customize?


You can find a list of available kernels using the NixOS search packages websites NixOS Search

I don’t know how to help you on the REPL side though :sweat_smile:

1 Like

I believe the wiki was telling you to attempt to tab-complete pkgs.linuxPackages, not actually enter it.



Sorry about that. Thanks. :sweat_smile: