mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-04-16 03:48:14 +00:00
nixos/azure: add contents module option (#244364)
This commit is contained in:
parent
b4463d5519
commit
dccd00027e
@ -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;
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user