diff options
Diffstat (limited to 'accounts/gkleen@sif/libvirt')
-rw-r--r-- | accounts/gkleen@sif/libvirt/default.nix | 21 |
1 files changed, 16 insertions, 5 deletions
diff --git a/accounts/gkleen@sif/libvirt/default.nix b/accounts/gkleen@sif/libvirt/default.nix index f86a68a2..4e5a9b90 100644 --- a/accounts/gkleen@sif/libvirt/default.nix +++ b/accounts/gkleen@sif/libvirt/default.nix | |||
@@ -7,6 +7,7 @@ with flakeInputs.nixVirt.lib; | |||
7 | config = { | 7 | config = { |
8 | virtualisation.libvirt = { | 8 | virtualisation.libvirt = { |
9 | enable = true; | 9 | enable = true; |
10 | swtpm.enable = true; | ||
10 | connections."qemu:///session" = { | 11 | connections."qemu:///session" = { |
11 | domains = [ | 12 | domains = [ |
12 | { definition = domain.writeXML (updateManyAttrsByPath [ | 13 | { definition = domain.writeXML (updateManyAttrsByPath [ |
@@ -16,8 +17,8 @@ with flakeInputs.nixVirt.lib; | |||
16 | memory = { count = 16; unit = "GiB"; }; | 17 | memory = { count = 16; unit = "GiB"; }; |
17 | storage_vol = "/home/gkleen/.local/share/libvirt/images/lmmirzm-vmrz01.qcow2"; | 18 | storage_vol = "/home/gkleen/.local/share/libvirt/images/lmmirzm-vmrz01.qcow2"; |
18 | nvram_path = "/home/gkleen/.local/share/libvirt/lmmirzm-vmrz01.nvram"; | 19 | nvram_path = "/home/gkleen/.local/share/libvirt/lmmirzm-vmrz01.nvram"; |
19 | virtio_drive = false; | 20 | virtio_drive = true; |
20 | virtio_video = false; | 21 | virtio_video = true; |
21 | install_virtio = false; | 22 | install_virtio = false; |
22 | }) { | 23 | }) { |
23 | qemu-commandline.env = [ | 24 | qemu-commandline.env = [ |
@@ -33,11 +34,12 @@ with flakeInputs.nixVirt.lib; | |||
33 | os.bootmenu.enable = true; | 34 | os.bootmenu.enable = true; |
34 | devices.graphics = { | 35 | devices.graphics = { |
35 | listen.type = "address"; | 36 | listen.type = "address"; |
36 | # gl.enable = true; | 37 | gl.enable = false; |
37 | }; | 38 | }; |
39 | devices.video.model.acceleration.accel3d = false; | ||
38 | devices.interface = { | 40 | devices.interface = { |
39 | # model.type = "virtio"; | 41 | model.type = "virtio"; |
40 | model.type = "e1000e"; | 42 | # model.type = "e1000e"; |
41 | type = "bridge"; | 43 | type = "bridge"; |
42 | mac.address = "52:54:00:b9:f3:ed"; | 44 | mac.address = "52:54:00:b9:f3:ed"; |
43 | source.bridge = "rz-0971"; | 45 | source.bridge = "rz-0971"; |
@@ -47,6 +49,15 @@ with flakeInputs.nixVirt.lib; | |||
47 | type = "unix"; | 49 | type = "unix"; |
48 | target = { type = "virtio"; name = "org.qemu.guest_agent.0"; }; | 50 | target = { type = "virtio"; name = "org.qemu.guest_agent.0"; }; |
49 | } | 51 | } |
52 | { | ||
53 | type = "spicevmc"; | ||
54 | target = { type = "virtio"; name = "com.redhat.spice.0"; }; | ||
55 | } | ||
56 | { | ||
57 | type = "spiceport"; | ||
58 | target = { type = "virtio"; name = "org.spice-space.webdav.0"; }; | ||
59 | source.channel = "org.spice-space.webdav.0"; | ||
60 | } | ||
50 | ]; | 61 | ]; |
51 | devices.tpm.model = "tpm-tis"; | 62 | devices.tpm.model = "tpm-tis"; |
52 | })); | 63 | })); |