blob: 54d971c4402864e03b8c6cb8d49cd327186c1583 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
{ flakeInputs, lib, ... }:
with lib;
with flakeInputs.nixVirt.lib;
{
config = {
virtualisation.libvirt = {
enable = true;
connections."qemu:///session" = {
domains = [
{ definition = domain.writeXML (recursiveUpdate (domain.templates.windows {
name = "lmmirzm-vmrz01";
uuid = "9e1dab2e-7986-4cb3-88af-6fad8969e15f";
memory = { count = 16; unit = "GiB"; };
storage_vol = "/home/gkleen/.local/share/libvirt/images/lmmirzm-vmrz01.qcow2";
nvram_path = "/home/gkleen/.local/share/libvirt/lmmirzm-vmrz01.nvram";
virtio_net = true;
virtio_drive = true;
virtio_video = false;
install_virtio = true;
}) {
vcpu.count = 4;
os.bootmenu.enable = true;
devices.graphics = {
listen.type = "address";
# gl.enable = true;
};
devices.interface = {
type = "bridge";
mac.address = "52:54:00:b9:f3:ed";
source.bridge = "gre-0971";
};
});
}
];
pools = [
{ definition = ./pool-default.xml;
active = true;
volumes = [
{ definition = ./vol-lmmirzm-vmrz01.xml;
}
];
}
];
};
};
};
}
|