Nix repl / problem with listing kernel packages


Currently I’m on NixOS-unstable and was trying to follow the Wiki-entry at
for finding out which kernel packages are available.

However, that did not work as I expected but I cannot figure out what I am doing wrong.

What I “saw” is …

nix-repl> :l <nixpkgs>
Added 11136 variables.

That looks OK, but pkgs.linuxPackages results in [output shorted]

{ __unfix__ = «lambda @ /nix/store/9wcnmb6jsiiw4i8zbm7xq37wjqcdlgcz-nixos/nixos/pkgs/top-level/all-packages.nix:16241:50»; acpi_call = «derivation /nix/store/c0a634377lfnnn05mj2ahxjar4g6v5qr-acpi-call-4.19.84.drv»; amdgpu-pro = «derivation «error: Package ‘amdgpu-pro-17.40-4.19.84’ in /nix/store/9wcnmb6jsiiw4i8zbm7xq37wjqcdlgcz-nixos/nixos/pkgs/os-specific/linux/amdgpu-pro/default.nix:175 has an unfree license (‘unfree’), refusing to evaluate.               

a) For `nixos-rebuild` you can set                                           
  { nixpkgs.config.allowUnfree = true; }                                     
in configuration.nix to override this.                                       

b) For `nix-env`, `nix-build`, `nix-shell` or any other Nix command you can add                                                                           
  { allowUnfree = true; }                                                    
to ~/.config/nixpkgs/config.nix.          

[... and so on]


 allowUnfree = true; 
 allowBroken = true; 

to my config.nix makes the error messages disappear, but still does not result in a listing of available kernels as shown in the Wiki. Instead an unformatted long string is shown.

I then tried looking for firefox which resulted in:

nix-repl> pkgs.firefox        
«derivation /nix/store/cvjcykpl2kikdp7af0c4gb7y2izi32w3-firefox-70.0.1.drv»

Maybe this behaviour is just normal and I am just missing something?

The listing you see in the wiki isn’t a listing of packages in pkgs.linuxPackages. It’s the tab completion suggestions after typing pkgs.linuxPackages, showing which sets of kernel packages are available.

Thanks! I could not “read” this from the Wiki entry.