2019-01-28 14:09:48 +00:00
|
|
|
# nix-build '<nixpkgs/nixos>' -A config.system.build.openstackImage --arg configuration "{ imports = [ ./nixos/maintainers/scripts/openstack/openstack-image.nix ]; }"
|
|
|
|
|
|
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
|
|
|
|
with lib;
|
|
|
|
|
|
|
|
{
|
|
|
|
imports =
|
|
|
|
[ ../../../modules/installer/cd-dvd/channel.nix
|
|
|
|
../../../modules/virtualisation/openstack-config.nix
|
|
|
|
];
|
|
|
|
|
|
|
|
system.build.openstackImage = import ../../../lib/make-disk-image.nix {
|
|
|
|
inherit lib config;
|
|
|
|
pkgs = import ../../../.. { inherit (pkgs) system; }; # ensure we use the regular qemu-kvm package
|
2021-04-24 03:38:36 +01:00
|
|
|
diskSize = 8192;
|
2019-01-28 14:09:48 +00:00
|
|
|
format = "qcow2";
|
|
|
|
configFile = pkgs.writeText "configuration.nix"
|
|
|
|
''
|
|
|
|
{
|
|
|
|
imports = [ <nixpkgs/nixos/modules/virtualisation/openstack-config.nix> ];
|
|
|
|
}
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|