mirror of
https://github.com/TheWanderingCrow/CrOS.git
synced 2026-03-23 22:41:31 -04:00
28 lines
586 B
Nix
28 lines
586 B
Nix
{ 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"
|
|
];
|
|
|
|
programs.virt-manager.enable = true;
|
|
virtualisation.libvirtd = {
|
|
enable = true;
|
|
qemu = {
|
|
swtpm.enable = true;
|
|
};
|
|
};
|
|
|
|
networking.firewall.trustedInterfaces = [ "virbr0" ];
|
|
|
|
environment.systemPackages = [
|
|
pkgs.qemu
|
|
pkgs.quickemu
|
|
pkgs.dnsmasq # Required by virt-manager
|
|
];
|
|
}
|