48 lines
716 B
Nix
48 lines
716 B
Nix
{
|
|
pkgs,
|
|
...
|
|
}: {
|
|
virtualisation = {
|
|
podman = {
|
|
enable = true;
|
|
dockerSocket.enable = true;
|
|
dockerCompat = true;
|
|
|
|
autoPrune = {
|
|
enable = true;
|
|
dates = "weekly";
|
|
};
|
|
};
|
|
|
|
containers = {
|
|
registries = {
|
|
search = ["docker.io"];
|
|
};
|
|
};
|
|
|
|
libvirtd = {
|
|
enable = true;
|
|
qemu = {
|
|
swtpm.enable = true;
|
|
|
|
ovmf = {
|
|
enable = true;
|
|
packages = with pkgs; [OVMFFull.fd];
|
|
};
|
|
};
|
|
};
|
|
|
|
spiceUSBRedirection.enable = true;
|
|
};
|
|
|
|
environment.systemPackages = with pkgs; [
|
|
virt-manager
|
|
virt-viewer
|
|
spice
|
|
spice-gtk
|
|
spice-protocol
|
|
win-virtio
|
|
win-spice
|
|
];
|
|
}
|