diff --git a/machines/Home-Hypervisor/virtualisation.nix b/machines/Home-Hypervisor/virtualisation.nix index fc6db5d..2cfe8a6 100644 --- a/machines/Home-Hypervisor/virtualisation.nix +++ b/machines/Home-Hypervisor/virtualisation.nix @@ -14,25 +14,6 @@ containers.storage.settings.storage.graphroot = lib.mkForce "/var/lib/podman/storage"; }; - # networking.dhcpcd.denyInterfaces = [ "podman0" ]; - # systemd.network = { - # netdevs."60-podman0" = { - # netdevConfig = { - # Kind = "bridge"; - # Name = "podman0"; - # }; - # }; - # networks."50-podman" = { - # matchConfig = { - # Name = "podman0"; - # }; - # linkConfig = { - # Unmanaged = true; - # ActivationPolicy = "manual"; - # }; - # }; - # }; - users.users.${config.mainuser} = { subUidRanges = [{ count = 1000; @@ -43,4 +24,13 @@ startGid = 10000; }]; }; + + virtualisation.libvirt.guests = { + omv = { + autoStart = true; + user = config.mainuser; + group = "libvirtd"; + xmlFile = ./vm/omv.xml; + }; + }; } \ No newline at end of file diff --git a/machines/Home-Hypervisor/vm/omv.xml b/machines/Home-Hypervisor/vm/omv.xml new file mode 100644 index 0000000..3ad9c57 --- /dev/null +++ b/machines/Home-Hypervisor/vm/omv.xml @@ -0,0 +1,197 @@ + + omv + 48cd00d8-9060-4221-a8bb-4d1db42c5939 + + + + + + 2097152 + 2097152 + 2 + + hvm + /run/libvirt/nix-ovmf/OVMF_CODE.fd + /var/lib/libvirt/qemu/nvram/omv_VARS.fd + + + + + + + + + + + + + + + destroy + restart + destroy + + + + + + /run/libvirt/nix-emulators/qemu-system-x86_64 + + + + + +
+ + + + + +
+ + + + + + +
+ + +
+ + + + + +
+ + + + +
+ + + + +
+ + + + +
+ + + + +
+ + + + +
+ + + + +
+ + + + +
+ + + + +
+ + + + +
+ + + + +
+ + + + +
+ + + + +
+ + + + +
+ + +
+ + +
+ + + + + +
+ + + + + + + + + + + +
+ + + +
+ + +
+ + + + + + + + + + + +
+ +