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
{{ message }}
Repository navigation
wsl battery forces inputs.nixos-wsl on flakes that don't use WSL #702
Full trace goes through nixpkgs lib/modules.nix (checked options -> checkUnmatched -> ... -> matchedOptions) and ends at the default attribute above being forced during option checking. So every consumer without the input is broken, whether they use WSL or not.
Things I tried that did NOT help:
setting host.wsl.module explicitly per your docs ("or specify host.wsl.module"), with both lib.mkDefault { } and lib.mkForce { } — same error, the default itself gets evaluated regardless of definitions.
Expected: flakes that don't use WSL shouldn't need the nixos-wsl input. Either the default should only resolve when wsl.enable = true, or it should tolerate a missing input (e.g. fall back to null / { } when inputs has no nixos-wsl).
Versions: den f88d635, nixpkgs nixos-unstable e94cb152, nix 2.34.8.
Activity
fix: don't require inputs.nixos-wsl when WSL is unused (denful#703)