This commit is contained in:
waveringana 2025-06-11 01:13:48 -04:00
parent d616cdca1f
commit b3d97cdc5f
35 changed files with 110 additions and 13 deletions

19
hosts/focalor/vfio.nix Normal file
View file

@ -0,0 +1,19 @@
programs.virt-manager.enable = true;
virtualisation.spiceUSBRedirection.enable = true;
virtualisation.libvirtd = {
enable = true;
qemu = {
package = pkgs.qemu_kvm;
runAsRoot = true;
swtpm.enable = true;
ovmf = {
enable = true;
packages = [(pkgs.OVMF.override {
secureBoot = true;
tpmSupport = true;
}).fd];
};
};
};
users.extraUsers.regent.extraGroups = [ "libvirtd" ];