nixcfg/hosts/focalor/vfio.nix

23 lines
No EOL
528 B
Nix

{ config, lib, system, pkgs, modulesPath, inputs, ... }:
{
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" ];
}