37 lines
645 B
Nix
37 lines
645 B
Nix
{ pkgs, ... }:
|
|
|
|
{
|
|
virtualisation.libvirtd = {
|
|
enable = true;
|
|
|
|
qemu = {
|
|
swtpm.enable = true;
|
|
ovmf.enable = true;
|
|
ovmf.packages = [ pkgs.OVMFFull.fd ];
|
|
};
|
|
};
|
|
|
|
virtualisation.spiceUSBRedirection.enable = true;
|
|
services.spice-vdagentd.enable = true;
|
|
|
|
virtualisation.docker = {
|
|
enable = true;
|
|
enableOnBoot = true;
|
|
rootless = {
|
|
enable = true;
|
|
setSocketVariable = true;
|
|
};
|
|
};
|
|
|
|
environment.systemPackages = with pkgs; [
|
|
docker-compose
|
|
qemu
|
|
spice
|
|
spice-gtk
|
|
spice-protocol
|
|
virt-manager
|
|
virt-viewer
|
|
win-spice
|
|
win-virtio
|
|
];
|
|
}
|