qemu virt stuff

This commit is contained in:
TheWanderingCrow 2026-02-06 10:08:47 -05:00
parent 92049950e2
commit 9c6c86c604
3 changed files with 18 additions and 9 deletions

View file

@ -1,8 +0,0 @@
{
virtualisation.virtualbox = {
host = {
enable = true;
addNetworkInterface = true;
};
};
}

View file

@ -0,0 +1,17 @@
{ pkgs, ... }:
{
# Enable UEFI support
systemd.tmpfiles.rules = [ "L+ /var/lib/qemu/firmware - - - - ${pkgs.qemu}/share/qemu/firmware" ];
# Allow virtualising off-architecture systems
boot.binfmt.emulatedSystems = [
"aarch64-linux"
"riscv64-linux"
];
environment.systemPackages = [
pkgs.qemu
pkgs.quickemu
];
}