46 lines
931 B
Nix
Executable file
46 lines
931 B
Nix
Executable file
{ config, pkgs, home-manager, ... }:
|
|
|
|
{
|
|
virtualisation = {
|
|
docker = {
|
|
enable = true;
|
|
autoPrune = {
|
|
enable = true;
|
|
dates = "weekly";
|
|
};
|
|
};
|
|
libvirtd = {
|
|
enable = true;
|
|
qemu.ovmf.enable = true;
|
|
qemu.swtpm.enable = true;
|
|
qemu.ovmf.packages = [ pkgs.OVMFFull ];
|
|
};
|
|
spiceUSBRedirection.enable = true;
|
|
virtualbox.host = {
|
|
enable = false;
|
|
enableExtensionPack = true;
|
|
};
|
|
};
|
|
|
|
environment.systemPackages = with pkgs; [
|
|
virt-manager
|
|
win-virtio
|
|
];
|
|
|
|
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;
|
|
|
|
networking.bridges = {
|
|
"br0" = {
|
|
interfaces = [ "eth0" "wlan0" ];
|
|
};
|
|
};
|
|
}
|