Skip to content

nixos/qemu-vm: fix eval - #565449

Merged
Ma27 merged 1 commit into
NixOS:masterfrom
Ma27:fix-qemu-vm-eval
Sep 21, 2026
Merged

Ma27 merged 1 commit into
NixOS:masterfrom
Ma27:fix-qemu-vm-eval

Conversation

@Ma27

@Ma27 Ma27 commented Sep 21, 2026

Copy link
Copy Markdown
Member

nix-instantiate -A nixosTests.nixos-test-driver fails with

error: A definition for option virtualisation.host.pkgs' is not of type An evaluation of Nixpkgs; the top level attribute set of packages'. Definition values:

  • In `/home/ma27/Projects/nixpkgs-2/nixos/modules/virtualisation/qemu-vm.nix'

Things done

`nix-instantiate -A nixosTests.nixos-test-driver` fails with

   error: A definition for option `virtualisation.host.pkgs' is not of type `An evaluation of Nixpkgs; the top level attribute set of packages'. Definition values:
   - In `/home/ma27/Projects/nixpkgs-2/nixos/modules/virtualisation/qemu-vm.nix'
@Ma27
Ma27 requested a review from jfly September 21, 2026 08:01

@fricklerhandwerk fricklerhandwerk left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I arrived at the same conclusion but wasn't as fast with pushing it. Thanks!

@nixpkgs-ci
nixpkgs-ci Bot requested a review from RaitoBezarius September 21, 2026 08:07
@nixpkgs-ci nixpkgs-ci Bot added 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 12.approvals: 1 This PR was reviewed and approved by one person. 6.topic: nixos Issues or PRs affecting NixOS modules, or package usability issues specific to NixOS 8.has: module (update) This PR changes an existing module in `nixos/` labels Sep 21, 2026
@Ma27
Ma27 added this pull request to the merge queue Sep 21, 2026
Merged via the queue into NixOS:master with commit 1842d75 Sep 21, 2026
32 checks passed
@Ma27
Ma27 deleted the fix-qemu-vm-eval branch September 21, 2026 08:16

@jfly jfly left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry for breaking this, and thanks for fixing it.

I'd love to understand how this fixes the issue. My mental model was that defaultText only matters for generating documentation...

@Ma27

Ma27 commented Sep 21, 2026

Copy link
Copy Markdown
Member Author

The test that broke was options-doc-regression from the tests and it seem sto be a regression test just for the thing we ran into, leaking hostPkgs into the manual in some way.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

6.topic: nixos Issues or PRs affecting NixOS modules, or package usability issues specific to NixOS 8.has: module (update) This PR changes an existing module in `nixos/` 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. 12.approvals: 1 This PR was reviewed and approved by one person.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants