2018-08-05 20:38:34 +02:00
|
|
|
# nix-build '<nixpkgs/nixos>' -A config.system.build.cloudstackImage --arg configuration "{ imports = [ ./nixos/maintainers/scripts/cloudstack/cloudstack-image.nix ]; }"
|
|
|
|
|
2024-12-10 20:26:33 +01:00
|
|
|
{
|
|
|
|
config,
|
|
|
|
lib,
|
|
|
|
pkgs,
|
|
|
|
...
|
|
|
|
}:
|
2018-08-05 20:38:34 +02:00
|
|
|
|
|
|
|
{
|
2024-12-10 20:26:33 +01:00
|
|
|
imports = [ ../../../modules/virtualisation/cloudstack-config.nix ];
|
2018-08-05 20:38:34 +02:00
|
|
|
|
|
|
|
system.build.cloudstackImage = import ../../../lib/make-disk-image.nix {
|
|
|
|
inherit lib config pkgs;
|
|
|
|
format = "qcow2";
|
2024-12-10 20:26:33 +01:00
|
|
|
configFile = pkgs.writeText "configuration.nix" ''
|
|
|
|
{
|
|
|
|
imports = [ <nixpkgs/nixos/modules/virtualisation/cloudstack-config.nix> ];
|
|
|
|
}
|
|
|
|
'';
|
2018-08-05 20:38:34 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|