Fixes qemu user session uefi
This commit is contained in:
@ -13,6 +13,7 @@
|
||||
../../system/hardware/bluetooth.nix
|
||||
(./. + "../../../system/wm"+("/"+wm)+".nix") # My window manager
|
||||
../../system/app/flatpak.nix
|
||||
../../system/app/virtualization.nix
|
||||
../../system/security/doas.nix
|
||||
../../system/security/gpg.nix
|
||||
../../system/security/blocklist.nix
|
||||
|
13
system/app/virtualization.nix
Normal file
13
system/app/virtualization.nix
Normal file
@ -0,0 +1,13 @@
|
||||
{ config, lib, pkgs, ... }:
|
||||
|
||||
{
|
||||
environment.systemPackages = [ pkgs.virt-manager ];
|
||||
virtualisation.libvirtd = {
|
||||
allowedBridges = [
|
||||
"nm-bridge"
|
||||
"virbr0"
|
||||
];
|
||||
enable = true;
|
||||
qemuRunAsRoot = false;
|
||||
};
|
||||
}
|
@ -7,6 +7,7 @@
|
||||
libvirt
|
||||
virt-manager
|
||||
qemu
|
||||
uefi-run
|
||||
lxc
|
||||
swtpm
|
||||
bottles
|
||||
@ -15,4 +16,8 @@
|
||||
dosfstools
|
||||
];
|
||||
|
||||
home.file.".config/libvirt/qemu.conf".text = ''
|
||||
nvram = ["/run/libvirt/nix-ovmf/OVMF_CODE.fd:/run/libvirt/nix-ovmf/OVMF_VARS.fd"]
|
||||
'';
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user