Open post reym @reym@mastodon.social · 7mo ago Replying to @me_and@tech.lgbt <p>Minimal <a href="https://tech.lgbt/tags/NixOS" class="mention hashtag" rel="tag">#<span>NixOS</span></a> VM base config, for when I want to quickly spin up something disposable to reproduce a problem.</p><p>After writing something similar two or three times, I figured it was time to do the job properly and commit it somewhere I'd find it next time I go looking.</p><p><a href="https://github.com/me-and/nixos-minimal-vm" target="_blank" rel="nofollow noopener" translate="no"><span class="invisible">https://</span><span class="ellipsis">github.com/me-and/nixos-minima</span><span class="invisible">l-vm</span></a></p> @me_and@tech.lgbt Seems interesting. Is this similar to https://integer.garden/Notes/Building-a-NixOS-VM-from-a-flake 🙂 integer.garden Building a NixOS VM from a flake nix.dev has documentation for building NixOS VMs using the handy qemu-vm.nix module. With a bit of digging into how this works it’s easy enough to adapt How to build a NixOS configuration from a flake with nix build to also build this script from a flake and run your NixOS configuration as a VM.