38 lines
775 B
Nix
Executable file
38 lines
775 B
Nix
Executable file
{ config, pkgs, home-manager, ... }:
|
|
|
|
{
|
|
virtualisation = {
|
|
libvirtd = {
|
|
enable = true;
|
|
qemu.ovmf.enable = true;
|
|
qemu.swtpm.enable = true;
|
|
qemu.ovmf.packages = [ pkgs.OVMFFull ];
|
|
};
|
|
spiceUSBRedirection.enable = true;
|
|
};
|
|
services.spice-vdagentd.enable = true;
|
|
|
|
environment.systemPackages = with pkgs; [
|
|
virt-manager
|
|
virt-viewer
|
|
spice
|
|
spice-gtk
|
|
spice-protocol
|
|
win-virtio
|
|
win-spice
|
|
# quickemu
|
|
spicy
|
|
];
|
|
|
|
users.extraGroups.vboxusers.members = [ "jsutter" ];
|
|
|
|
environment.sessionVariables.LIBVIRT_DEFAULT_URI = [ "qemu:///system" ];
|
|
|
|
boot.kernelModules = [ "kvm-intel" "kvm-amd" ];
|
|
|
|
virtualisation.libvirtd.allowedBridges =
|
|
[ "br0" ];
|
|
|
|
networking.interfaces.br0.useDHCP = true;
|
|
|
|
}
|