You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When running nixos-rebuild list-generations --flake . --json I'm getting errors from the ls command
I 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
❯ nixos-rebuild list-generations --flake . --json
ls: cannot access '/nix/store/0jdik0dwkivhfks4wd8hm0gj19ggynbz-nixos-system-potamoi-24.05.20240930.1719f27/lib/modules': No such file or directory
ls: cannot access '/nix/store/q42667alh58552sxiakxdy68hw5lfqpq-nixos-system-potamoi-24.05.20240930.1719f27/lib/modules': No such file or directory
ls: cannot access '/nix/store/dxvf9dn9w5xk6ivfsfdna168qcaq1nci-nixos-system-potamoi-24.05.20240930.1719f27/lib/modules': No such file or directory
ls: cannot access '/nix/store/0k8ywpi39xw1376pacj7mkbx061lfyin-nixos-system-potamoi-24.05.20240930.1719f27/lib/modules': No such file or directory
[
{
"generation": 17,
"date": "2024-10-16T17:33:18Z",
"nixosVersion": "24.05.20240930.1719f27",
"kernelVersion": "Unknown",
"configurationRevision": "",
"specialisations": [
"*"
],
"current": true
},
...
]
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
The text was updated successfully, but these errors were encountered: