Open iainvm opened 1 month ago
A different kernel shouldn't matter.
You probably deleted the other store paths by accident and some symlinks are dangling. Try updating and the garbage collecting the nix store.
As I add more to my config the more of these errors I see when listing the generations, and I'm only executing sudo nixos-rebuild switch --flake .
I don't think I've been deleting any files in the /nix/
folder
I am able to reproduce that on my installation. My guess is that nixos-rebuild list-generations
tries to look at what kernel modules are included in the generations (probably to determine the kernel version), but fails, because there are no kernel modules on NixOS-WSL because the kernel isn't managed by NixOS
Bug description
When running
nixos-rebuild list-generations --flake . --json
I'm getting errors from thels
commandI think this might be happening because I used WSL2-Linux-Kernel-Rolling to update my kernel to get WSL Memory Reclaiming to work. So the kernel is coming up as unknown, but this is only a guess
To Reproduce
Install updated kernel Install NixOS WSL Use flakes for system Run
nixos-rebuild list-generations --flake . --json
Logs
WSL version