AshleyYakeley / NixVirt

LibVirt domain management for Nix
MIT License
192 stars 21 forks source link

Add qemu-override section #37

Closed pharra closed 6 months ago

pharra commented 6 months ago

https://gitlab.com/qemu-project/qemu/-/issues/1015 nix demo

qemu-override = {
                device = {
                  alias = "hostdev0";
                  frontend = {
                    property = {
                      name = "x-vga";
                      type = "bool";
                      value = "true";
                    };
                  };
                };
              };

result

  <qemu:override>
    <qemu:device alias='hostdev0'>
      <qemu:frontend>
        <qemu:property name='x-vga' type='bool' value='true'/>
      </qemu:frontend>
    </qemu:device>
  </qemu:override>
AshleyYakeley commented 6 months ago

Thanks

DrymarchonShaun commented 5 months ago

doesn't this require all the device types in <devices> to optionally take <alias name="*"/>?