diff --git a/README.md b/README.md index ae38eac..7ac3a68 100644 --- a/README.md +++ b/README.md @@ -37,6 +37,7 @@ iso | ISO kexec | kexec tarball (extract to / and run /kexec_nixos) kexec-bundle | same as before, but it's just an executable openstack | qcow2 image for openstack +cloudstack | qcow2 image for cloudstack qcow2 | qcow2 image raw | raw image virtualbox | virtualbox VM diff --git a/formats/cloudstack.nix b/formats/cloudstack.nix new file mode 100644 index 0000000..f4943c6 --- /dev/null +++ b/formats/cloudstack.nix @@ -0,0 +1,20 @@ +{ config, lib, pkgs, modulesPath, ... }: +{ + imports = [ + "${toString modulesPath}/virtualisation/cloudstack-config.nix" + ]; + + system.build.cloudstackImage = import "${toString modulesPath}/../lib/make-disk-image.nix" { + inherit lib config pkgs; + diskSize = 8192; + format = "qcow2"; + configFile = pkgs.writeText "configuration.nix" + '' + { + imports = [ ]; + } + ''; + }; + + formatAttr = "cloudstackImage"; +}