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, ... }:
|
2022-02-03 14:57:01 +00:00
|
|
|
let
|
|
|
|
copyChannel = true;
|
|
|
|
in
|
2019-01-28 14:09:48 +00:00
|
|
|
{
|
2022-02-03 14:56:55 +00:00
|
|
|
imports = [
|
|
|
|
../../../modules/virtualisation/openstack-config.nix
|
2022-02-03 14:57:01 +00:00
|
|
|
] ++ (lib.optional copyChannel ../../../modules/installer/cd-dvd/channel.nix);
|
|
|
|
|
|
|
|
documentation.enable = copyChannel;
|
2019-01-28 14:09:48 +00:00
|
|
|
|
|
|
|
system.build.openstackImage = import ../../../lib/make-disk-image.nix {
|
2022-02-03 14:57:01 +00:00
|
|
|
inherit lib config copyChannel;
|
2020-12-19 18:41:11 +00:00
|
|
|
additionalSpace = "1024M";
|
2019-01-28 14:09:48 +00:00
|
|
|
pkgs = import ../../../.. { inherit (pkgs) system; }; # ensure we use the regular qemu-kvm package
|
|
|
|
format = "qcow2";
|
|
|
|
configFile = pkgs.writeText "configuration.nix"
|
|
|
|
''
|
|
|
|
{
|
|
|
|
imports = [ <nixpkgs/nixos/modules/virtualisation/openstack-config.nix> ];
|
|
|
|
}
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|