Jump to content

Talk:NixOS:nixos-rebuild build-vm: Difference between revisions

From Official NixOS Wiki
Raboof (talk | contribs)
 
Line 5: Line 5:
:Ouch! Good thing you could hopefully just boot into the previous generation.
:Ouch! Good thing you could hopefully just boot into the previous generation.
:I added "add the following to the VM (not the host) configuration" as a start. Do I understand you use one `configuration.nix` for both your host and starting it in qemu? I don't have a test setup like that around so I'm reluctant to make further changes right now ;) [[User:Raboof|Raboof]] ([[User talk:Raboof|talk]]) 18:19, 20 July 2026 (UTC)
:I added "add the following to the VM (not the host) configuration" as a start. Do I understand you use one `configuration.nix` for both your host and starting it in qemu? I don't have a test setup like that around so I'm reluctant to make further changes right now ;) [[User:Raboof|Raboof]] ([[User talk:Raboof|talk]]) 18:19, 20 July 2026 (UTC)
::> use one `configuration.nix` for both your host and starting it in qemu
::Yes, I intended to test my config in a VM. My apology for the late reply. [[User:Daanturo|Daanturo]] ([[User talk:Daanturo|talk]]) 10:39, 25 August 2026 (UTC)

Latest revision as of 10:39, 25 August 2026

Shouldn't the location to import qemu-vm.nix be clarified?

Importing outside of virtualisation.vmVariant made my config unbootable as fileSystems.*, boot.initrd.luks.devices all became null. Daanturo (talk) 08:12, 13 June 2026 (UTC)Reply

Ouch! Good thing you could hopefully just boot into the previous generation.
I added "add the following to the VM (not the host) configuration" as a start. Do I understand you use one `configuration.nix` for both your host and starting it in qemu? I don't have a test setup like that around so I'm reluctant to make further changes right now ;) Raboof (talk) 18:19, 20 July 2026 (UTC)Reply
> use one `configuration.nix` for both your host and starting it in qemu
Yes, I intended to test my config in a VM. My apology for the late reply. Daanturo (talk) 10:39, 25 August 2026 (UTC)Reply