cloudstack: add to image/images

This was an oversight in https://github.com/NixOS/nixpkgs/pull/347275,
so it's currently missing from the variants listed in nixos-rebuild build-image
This commit is contained in:
phaer 2025-04-14 14:03:58 +02:00
parent e0afcb011b
commit d7e76ed0a2
3 changed files with 13 additions and 2 deletions

View file

@ -8,10 +8,19 @@
}:
{
imports = [ ../../../modules/virtualisation/cloudstack-config.nix ];
imports = [
../../../modules/virtualisation/cloudstack-config.nix
../../../modules/image/file-options.nix
];
system.nixos.tags = [ "cloudstack" ];
image.extension = "qcow2";
system.build.image = config.system.build.cloudstackImage;
system.build.cloudstackImage = import ../../../lib/make-disk-image.nix {
inherit lib config pkgs;
inherit (config.virtualisation) diskSize;
baseName = config.image.baseName;
format = "qcow2";
configFile = pkgs.writeText "configuration.nix" ''
{