From 5e08c56f667a9daf18ae3508848f93f372b76148 Mon Sep 17 00:00:00 2001 From: jbpratt Date: Mon, 20 Dec 2021 18:15:03 -0600 Subject: [PATCH] implement kubevirt format requires https://github.com/NixOS/nixpkgs/pull/151482 Signed-off-by: jbpratt --- README.md | 1 + formats/kubevirt.nix | 8 ++++++++ 2 files changed, 9 insertions(+) create mode 100644 formats/kubevirt.nix diff --git a/README.md b/README.md index c5c828b..95c1699 100644 --- a/README.md +++ b/README.md @@ -55,6 +55,7 @@ install-iso-hyperv | Installer ISO with enabled hyper-v support iso | ISO kexec | kexec tarball (extract to / and run /kexec_nixos) 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-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 diff --git a/formats/kubevirt.nix b/formats/kubevirt.nix new file mode 100644 index 0000000..b36d4e8 --- /dev/null +++ b/formats/kubevirt.nix @@ -0,0 +1,8 @@ +{ modulesPath, ... }: +{ + imports = [ + "${toString modulesPath}/virtualisation/kubevirt.nix" + ]; + + formatAttr = "kubevirtImage"; +}