2023-12-29 19:47:57 +01:00
|
|
|
{ pkgs, ... }:
|
2023-07-03 10:19:14 +02:00
|
|
|
{
|
2023-11-24 09:19:06 +01:00
|
|
|
virtualisation = {
|
2024-08-13 11:38:01 +02:00
|
|
|
# podman = {
|
|
|
|
# enable = true;
|
|
|
|
# defaultNetwork.settings.dns_enabled = true;
|
|
|
|
# };
|
2024-09-10 13:12:09 +02:00
|
|
|
docker = {
|
|
|
|
enable = true;
|
|
|
|
};
|
2023-11-24 09:19:06 +01:00
|
|
|
libvirtd = {
|
|
|
|
enable = true;
|
|
|
|
qemu = {
|
|
|
|
runAsRoot = false;
|
2023-12-27 22:55:40 +01:00
|
|
|
swtpm.enable = true;
|
|
|
|
ovmf.packages = [
|
2024-03-12 17:09:02 +01:00
|
|
|
(pkgs.OVMF.override ({ tpmSupport = true; secureBoot = true; })).fd
|
2023-12-27 22:55:40 +01:00
|
|
|
];
|
2023-11-24 09:19:06 +01:00
|
|
|
};
|
|
|
|
};
|
|
|
|
spiceUSBRedirection.enable = true;
|
|
|
|
};
|
2023-12-27 22:55:40 +01:00
|
|
|
# allow libvirts internal network stuff
|
2024-04-11 11:52:03 +02:00
|
|
|
networking.firewall.trustedInterfaces = [ "virbr0" ];
|
2023-12-27 22:55:40 +01:00
|
|
|
programs.virt-manager.enable = true;
|
2023-07-03 10:19:14 +02:00
|
|
|
environment.systemPackages = with pkgs; [
|
|
|
|
virt-viewer
|
2024-06-22 16:27:54 +02:00
|
|
|
podman-compose
|
2023-07-03 10:19:14 +02:00
|
|
|
];
|
|
|
|
}
|