implement kubevirt format

requires https://github.com/NixOS/nixpkgs/pull/151482

Signed-off-by: jbpratt <jbpratt78@gmail.com>
This commit is contained in:
jbpratt 2021-12-20 18:15:03 -06:00
parent 05a3eb158a
commit 5e08c56f66
2 changed files with 9 additions and 0 deletions

View File

@ -55,6 +55,7 @@ install-iso-hyperv | Installer ISO with enabled hyper-v support
iso | ISO iso | ISO
kexec | kexec tarball (extract to / and run /kexec_nixos) kexec | kexec tarball (extract to / and run /kexec_nixos)
kexec-bundle | same as before, but it's just an executable kexec-bundle | same as before, but it's just an executable
kubevirt | KubeVirt image
lxc | create a tarball which is importable as an lxc container, use together with lxc-metadata lxc | create a tarball which is importable as an lxc container, use together with lxc-metadata
lxc-metadata | the necessary metadata for the lxc image to start, usage: lxc image import $(nixos-generate -f lxc-metadata) $(nixos-generate -f lxc) lxc-metadata | the necessary metadata for the lxc image to start, usage: lxc image import $(nixos-generate -f lxc-metadata) $(nixos-generate -f lxc)
openstack | qcow2 image for openstack openstack | qcow2 image for openstack

8
formats/kubevirt.nix Normal file
View File

@ -0,0 +1,8 @@
{ modulesPath, ... }:
{
imports = [
"${toString modulesPath}/virtualisation/kubevirt.nix"
];
formatAttr = "kubevirtImage";
}