NixOS / nixos-hardware

A collection of NixOS modules covering hardware quirks.
Creative Commons Zero v1.0 Universal
2.08k stars 644 forks source link

tests: fix unused importPath in unfreeNixpkgs function #1226

Closed soopyc closed 3 weeks ago

soopyc commented 3 weeks ago
Description of changes

The nixpkgs used to test profiles was (likely mistakenly) hardcoded to nixos-unstable-small, and as a result both nixpkgs{Unstable,Stable} used the same nixpkgs version. This causes unexpected assertion failures with (lib.versionAtLeast (lib.versions.majorMinor lib.version) "24.11")

This PR unhardcodes the value and resolves the potential issue.

Note that this fails 3 tests at the time of writing, namely x86_64-linux.nixos-stable-lenovo-legion-16ach6h{,-hybrid,-nvidia}, all because of a non-existent hardware.display option in stable nixpkgs.

Things done