This commit is contained in:
2026-03-27 18:11:06 +01:00
parent be00d8eefd
commit dd8d3f26bf
160 changed files with 4732 additions and 0 deletions

20
nixos/virt.nix Normal file
View File

@@ -0,0 +1,20 @@
{ pkgs, ... }:
{
virtualisation.libvirtd.enable = true;
boot.binfmt.emulatedSystems = [
"aarch64-linux"
"riscv64-linux"
];
environment.systemPackages = with pkgs; [
qemu
quickemu
quickgui
nemu
];
systemd.tmpfiles.rules = [
"L+ /var/lib/qemu/firmware - - - - ${pkgs.qemu}/share/qemu/firmware"
];
environment.etc."qemu/bridge.conf".text = ''
allow br0
'';
}