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
Introduced in #851, diskoLib.vmToolsSupportsCustomQemu is used to check if the current nixpkgs supports overriding QEMU package.
While disko in general should be used with nixos-unstable, due to #900 I'm current targetting nixos-24.11. With the following test project I got the following error:
error:
Failed assertions:
- You have set config.disko.imageBuild.qemu, but vmTools in your nixpkgs version "24.11.20241123.0c58267"
does not support overriding the qemu package with the customQemu option yet.
Please upgrade nixpkgs so that `lib.version` is at least "24.11.20240709".
Checking lib.versionAtLeast "24.11.20241123.0c58267" "24.11.20240709" in nix repl got the expected True. After checking the source I found out that the assert is printing lib.version but vmToolsSupportsCustomQemu is checking pkgs.lib.version. I updated the assert message and the error now makes more sense:
error:
Failed assertions:
- You have set config.disko.imageBuild.qemu, but vmTools in your nixpkgs version "24.11pre-git"
does not support overriding the qemu package with the customQemu option yet.
Please upgrade nixpkgs so that `lib.version` is at least "24.11.20240709".
I think we should change vmToolsSupportsCustomQemu to check lib.version as well, because that value looks to be more correct, but I know little between the difference of those 2 fields and how they actually should be used.
The text was updated successfully, but these errors were encountered:
Can confirm. I looked into what could be causing the issue, and encountered something weird. I've downloaded your example flake, and it seems the pkgs that arrives in the configuration is different from the flake's input:
Introduced in #851,
diskoLib.vmToolsSupportsCustomQemu
is used to check if the currentnixpkgs
supports overriding QEMU package.While
disko
in general should be used withnixos-unstable
, due to #900 I'm current targettingnixos-24.11
. With the following test project I got the following error:Here is the table for the tested combinations:
Checking
lib.versionAtLeast "24.11.20241123.0c58267" "24.11.20240709"
innix repl
got the expectedTrue
. After checking the source I found out that the assert is printinglib.version
butvmToolsSupportsCustomQemu
is checkingpkgs.lib.version
. I updated the assert message and the error now makes more sense:I think we should change
vmToolsSupportsCustomQemu
to checklib.version
as well, because that value looks to be more correct, but I know little between the difference of those 2 fields and how they actually should be used.The text was updated successfully, but these errors were encountered: