mirror of
https://github.com/nix-community/nixos-generators.git
synced 2024-11-30 01:39:36 +03:00
21 lines
519 B
Nix
21 lines
519 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";
|
|
}
|