nixos/azure: add contents module option (#244364)

This commit is contained in:
ners 2023-10-08 19:35:14 +02:00 committed by GitHub
parent b4463d5519
commit dccd00027e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -16,6 +16,13 @@ in
Size of disk image. Unit is MB.
'';
};
virtualisation.azureImage.contents = mkOption {
type = with types; listOf attrs;
default = [ ];
description = lib.mdDoc ''
Extra contents to add to the image.
'';
};
};
config = {
system.build.azureImage = import ../../lib/make-disk-image.nix {
@ -26,7 +33,7 @@ in
'';
configFile = ./azure-config-user.nix;
format = "raw";
inherit (cfg) diskSize;
inherit (cfg) diskSize contents;
inherit config lib pkgs;
};