1 # nix-build '<nixpkgs/nixos>' -A config.system.build.openstackImage --arg configuration "{ imports = [ ./nixos/maintainers/scripts/openstack/openstack-image.nix ]; }"
3 { config, lib, pkgs, ... }:
9 ../../../modules/virtualisation/openstack-config.nix
10 ] ++ (lib.optional copyChannel ../../../modules/installer/cd-dvd/channel.nix);
12 documentation.enable = copyChannel;
14 system.build.openstackImage = import ../../../lib/make-disk-image.nix {
15 inherit lib config copyChannel;
16 additionalSpace = "1024M";
17 pkgs = import ../../../.. { inherit (pkgs) system; }; # ensure we use the regular qemu-kvm package
19 configFile = pkgs.writeText "configuration.nix"
22 imports = [ <nixpkgs/nixos/modules/virtualisation/openstack-config.nix> ];