mirror of
https://github.com/nix-community/nixos-generators.git
synced 2024-09-11 12:15:29 +03:00
27 lines
534 B
Nix
27 lines
534 B
Nix
{
|
|
config,
|
|
lib,
|
|
pkgs,
|
|
modulesPath,
|
|
...
|
|
}: {
|
|
imports = [
|
|
"${toString modulesPath}/virtualisation/cloudstack-config.nix"
|
|
];
|
|
|
|
system.build.cloudstackImage = import "${toString modulesPath}/../lib/make-disk-image.nix" {
|
|
inherit lib config pkgs;
|
|
diskSize = 8192;
|
|
format = "qcow2";
|
|
configFile =
|
|
pkgs.writeText "configuration.nix"
|
|
''
|
|
{
|
|
imports = [ "${toString modulesPath}/virtualisation/cloudstack-config.nix" ];
|
|
}
|
|
'';
|
|
};
|
|
|
|
formatAttr = "cloudstackImage";
|
|
}
|