mirror of
https://github.com/librephoenix/nixos-config
synced 2025-01-19 07:05:51 +05:30
Fixes qemu user session uefi
This commit is contained in:
parent
c79e9d0dc1
commit
343c508be6
|
@ -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
|
||||||
|
|
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
|
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"]
|
||||||
|
'';
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue