at 21.11-pre 779 B view raw
1# nix-build '<nixpkgs/nixos>' -A config.system.build.openstackImage --arg configuration "{ imports = [ ./nixos/maintainers/scripts/openstack/openstack-image.nix ]; }" 2 3{ config, lib, pkgs, ... }: 4 5with lib; 6 7{ 8 imports = 9 [ ../../../modules/installer/cd-dvd/channel.nix 10 ../../../modules/virtualisation/openstack-config.nix 11 ]; 12 13 system.build.openstackImage = import ../../../lib/make-disk-image.nix { 14 inherit lib config; 15 additionalSpace = "1024M"; 16 pkgs = import ../../../.. { inherit (pkgs) system; }; # ensure we use the regular qemu-kvm package 17 format = "qcow2"; 18 configFile = pkgs.writeText "configuration.nix" 19 '' 20 { 21 imports = [ <nixpkgs/nixos/modules/virtualisation/openstack-config.nix> ]; 22 } 23 ''; 24 }; 25 26}