-
-
Notifications
You must be signed in to change notification settings - Fork 152
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Bug description
When switching flakes in NixOS-WSL, the system attempts to build Linux NVIDIA drivers even though wsl.useWindowsDriver = true is set in the configuration.
To Reproduce
Steps to reproduce the behavior:
- Configure NixOS-WSL with
wsl.useWindowsDriver = true - Add NVIDIA container toolkit configuration with
suppressNvidiaDriverAssertion = true - Run
nixos-rebuild switch --flake .#hostname - Observe system attempting to build Linux NVIDIA drivers
Configurations:
wsl = {
enable = true;
wrapBinSh = false; # https://github.com/microsoft/vscode-remote-release/issues/10375
useWindowsDriver = true; # required by nvidia-container-toolkit-cdi-generator
defaultUser = "${username}";
};
hardware.nvidia-container-toolkit = {
enable = true;
mount-nvidia-executables = false; # https://github.com/nix-community/NixOS-WSL/issues/578
suppressNvidiaDriverAssertion = true;
};
virtualisation.docker = {
enable = true;
enableOnBoot = true;
autoPrune.enable = true;
};
Logs
these 7 derivations will be built:
/nix/store/dia8zi6h02wdhbvk63i84ixsi1dl41fi-NVIDIA-Linux-x86_64-570.153.02.run.drv
/nix/store/0kxzcl0mm7q4njj7xfyc88fzx0n25i70-nvidia-x11-570.153.02-6.12.41.drv
/nix/store/gbf0lv4gh8rpl4xm83lmmzc3j2npvxrr-nvidia-cdi-generator.drv
/nix/store/4nk5bv3lbdj09fjkx06jgk273c5ks3gv-unit-nvidia-container-toolkit-cdi-generator.service.drv
/nix/store/5wlzzv6276rbnhxps03r5kmhpkimmg25-system-units.drv
/nix/store/1aiz73f848vzkx4cf51c613pxilzqmdi-etc.drv
/nix/store/55q8sw0zg2wpqnnffad2j8zpcx8kf9fw-nixos-system-nixos-25.05.20250804.ce01dae.drv
building '/nix/store/dia8zi6h02wdhbvk63i84ixsi1dl41fi-NVIDIA-Linux-x86_64-570.153.02.run.drv'...
WSL version
WSL Version: 2.5.10.0
Kernel Version: 6.6.87.2-1
WSLg Version: 1.0.66
MSRDC Version: 1.2.6074
Direct3D Version: 1.611.1-81528511
DXCore Version: 10.0.26100.1-240331-1435.ge-release
Windows: 10.0.26100.4652
Parsifa1
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working