2023-04-25 17:24:01 +03:00
|
|
|
{ config, lib, pkgs, ... }: {
|
2023-07-08 02:17:59 +03:00
|
|
|
virtualisation.libvirt.guests.fedora-synapse = {
|
|
|
|
autoStart = true;
|
2023-04-25 17:24:01 +03:00
|
|
|
user = config.mainuser;
|
|
|
|
group = "libvirtd";
|
2023-07-08 02:17:59 +03:00
|
|
|
uefi = true;
|
2023-04-25 17:24:01 +03:00
|
|
|
memory = 2 * 1024;
|
|
|
|
cpu = {
|
2023-07-08 02:17:59 +03:00
|
|
|
sockets = 1; cores = 1; threads = 2;
|
2023-04-25 17:24:01 +03:00
|
|
|
};
|
|
|
|
devices = {
|
2023-07-26 21:21:48 +03:00
|
|
|
disks = [
|
|
|
|
{ diskFile = "/media/nas/libvirt/images/fedora-matrix-root.img"; type = "raw"; targetName = "vda"; }
|
|
|
|
{ diskFile = "/media/nas/libvirt/images/fedora-matrix-synapse.img"; type = "raw"; targetName = "vdb"; }
|
|
|
|
];
|
2023-04-25 17:24:01 +03:00
|
|
|
network = {
|
|
|
|
macAddress = "00:16:3e:5b:49:bf";
|
|
|
|
interfaceType = "bridge";
|
|
|
|
sourceDev = "br0";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|