summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--accounts/gkleen@sif/libvirt/default.nix17
1 files changed, 11 insertions, 6 deletions
diff --git a/accounts/gkleen@sif/libvirt/default.nix b/accounts/gkleen@sif/libvirt/default.nix
index bd398e88..868dddd5 100644
--- a/accounts/gkleen@sif/libvirt/default.nix
+++ b/accounts/gkleen@sif/libvirt/default.nix
@@ -16,8 +16,7 @@ in {
16 swtpm.enable = true; 16 swtpm.enable = true;
17 connections."qemu:///session" = { 17 connections."qemu:///session" = {
18 domains = [ 18 domains = [
19 { definition = domain.writeXML (updateManyAttrsByPath [ 19 { definition = domain.writeXML (recursiveUpdate (domain.templates.windows {
20 ] (recursiveUpdate (domain.templates.windows {
21 name = "lmmirzm-vmrz01"; 20 name = "lmmirzm-vmrz01";
22 uuid = "9e1dab2e-7986-4cb3-88af-6fad8969e15f"; 21 uuid = "9e1dab2e-7986-4cb3-88af-6fad8969e15f";
23 memory = { count = 16; unit = "GiB"; }; 22 memory = { count = 16; unit = "GiB"; };
@@ -26,7 +25,9 @@ in {
26 virtio_video = true; 25 virtio_video = true;
27 install_virtio = false; 26 install_virtio = false;
28 }) { 27 }) {
29 metadata = libosinfo "http://microsoft.com/win/11"; 28 metadata = [
29 (libosinfo "http://microsoft.com/win/11")
30 ];
30 qemu-commandline.env = [ 31 qemu-commandline.env = [
31 { name = "SPICE_DEBUG_ALLOW_MC"; value = "1"; } 32 { name = "SPICE_DEBUG_ALLOW_MC"; value = "1"; }
32 ]; 33 ];
@@ -66,7 +67,7 @@ in {
66 } 67 }
67 ]; 68 ];
68 devices.tpm.model = "tpm-tis"; 69 devices.tpm.model = "tpm-tis";
69 })); 70 });
70 } 71 }
71 { definition = domain.writeXML (recursiveUpdate (domain.templates.linux { 72 { definition = domain.writeXML (recursiveUpdate (domain.templates.linux {
72 name = "vmrz02"; 73 name = "vmrz02";
@@ -90,7 +91,9 @@ in {
90 }; 91 };
91 bootmenu.enable = true; 92 bootmenu.enable = true;
92 }; 93 };
93 metadata = libosinfo "http://ubuntu.com/ubuntu/20.04"; 94 metadata = [
95 (libosinfo "http://ubuntu.com/ubuntu/20.04")
96 ];
94 qemu-commandline.env = [ 97 qemu-commandline.env = [
95 { name = "SPICE_DEBUG_ALLOW_MC"; value = "1"; } 98 { name = "SPICE_DEBUG_ALLOW_MC"; value = "1"; }
96 ]; 99 ];
@@ -167,7 +170,9 @@ in {
167 }; 170 };
168 bootmenu.enable = true; 171 bootmenu.enable = true;
169 }; 172 };
170 metadata = libosinfo "http://ubuntu.com/ubuntu/24.04"; 173 metadata = [
174 (libosinfo "http://ubuntu.com/ubuntu/24.04")
175 ];
171 qemu-commandline.env = [ 176 qemu-commandline.env = [
172 { name = "SPICE_DEBUG_ALLOW_MC"; value = "1"; } 177 { name = "SPICE_DEBUG_ALLOW_MC"; value = "1"; }
173 ]; 178 ];