From dec7ecbbbcc5f68ab8c96d39ba3c62eaf0326242 Mon Sep 17 00:00:00 2001 From: Antoine Eiche Date: Fri, 24 Feb 2017 22:17:52 +0100 Subject: nova-image: refactoring The nova image configuration is separated from the image build. --- nixos/maintainers/scripts/openstack/nova-image.nix | 24 ++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 nixos/maintainers/scripts/openstack/nova-image.nix (limited to 'nixos/maintainers') diff --git a/nixos/maintainers/scripts/openstack/nova-image.nix b/nixos/maintainers/scripts/openstack/nova-image.nix new file mode 100644 index 0000000000000..fa9cfb74bd6cc --- /dev/null +++ b/nixos/maintainers/scripts/openstack/nova-image.nix @@ -0,0 +1,24 @@ +{ config, lib, pkgs, ... }: + +with lib; + +{ + imports = + [ ../../../modules/installer/cd-dvd/channel.nix + ../../../modules/virtualisation/nova-config.nix + ]; + + system.build.novaImage = import ../../../lib/make-disk-image.nix { + inherit lib config; + pkgs = import ../../../.. { inherit (pkgs) system; }; # ensure we use the regular qemu-kvm package + diskSize = 8192; + format = "qcow2"; + configFile = pkgs.writeText "configuration.nix" + '' + { + imports = [ ]; + } + ''; + }; + +} -- cgit 1.4.1