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

 
Raboof (talk | contribs)
 
Line 2: Line 2:


Importing outside of <code>virtualisation.vmVariant</code> made my config unbootable as <code>fileSystems.*</code>, <code>boot.initrd.luks.devices</code> all became null. [[User:Daanturo|Daanturo]] ([[User talk:Daanturo|talk]]) 08:12, 13 June 2026 (UTC)
Importing outside of <code>virtualisation.vmVariant</code> made my config unbootable as <code>fileSystems.*</code>, <code>boot.initrd.luks.devices</code> all became null. [[User:Daanturo|Daanturo]] ([[User talk:Daanturo|talk]]) 08:12, 13 June 2026 (UTC)
: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)
Return to "NixOS:nixos-rebuild build-vm" page.