Fixes qemu user session uefi

This commit is contained in:
Emmet 2023-10-28 20:43:37 -05:00
parent c79e9d0dc1
commit 343c508be6
3 changed files with 19 additions and 0 deletions

View file

@ -13,6 +13,7 @@
../../system/hardware/bluetooth.nix ../../system/hardware/bluetooth.nix
(./. + "../../../system/wm"+("/"+wm)+".nix") # My window manager (./. + "../../../system/wm"+("/"+wm)+".nix") # My window manager
../../system/app/flatpak.nix ../../system/app/flatpak.nix
../../system/app/virtualization.nix
../../system/security/doas.nix ../../system/security/doas.nix
../../system/security/gpg.nix ../../system/security/gpg.nix
../../system/security/blocklist.nix ../../system/security/blocklist.nix

View file

@ -0,0 +1,13 @@
{ config, lib, pkgs, ... }:
{
environment.systemPackages = [ pkgs.virt-manager ];
virtualisation.libvirtd = {
allowedBridges = [
"nm-bridge"
"virbr0"
];
enable = true;
qemuRunAsRoot = false;
};
}

View file

@ -7,6 +7,7 @@
libvirt libvirt
virt-manager virt-manager
qemu qemu
uefi-run
lxc lxc
swtpm swtpm
bottles bottles
@ -15,4 +16,8 @@
dosfstools dosfstools
]; ];
home.file.".config/libvirt/qemu.conf".text = ''
nvram = ["/run/libvirt/nix-ovmf/OVMF_CODE.fd:/run/libvirt/nix-ovmf/OVMF_VARS.fd"]
'';
} }