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

authored by

ners and committed by
GitHub
dccd0002 b4463d55

+8 -1
+8 -1
nixos/modules/virtualisation/azure-image.nix
··· 16 16 Size of disk image. Unit is MB. 17 17 ''; 18 18 }; 19 + virtualisation.azureImage.contents = mkOption { 20 + type = with types; listOf attrs; 21 + default = [ ]; 22 + description = lib.mdDoc '' 23 + Extra contents to add to the image. 24 + ''; 25 + }; 19 26 }; 20 27 config = { 21 28 system.build.azureImage = import ../../lib/make-disk-image.nix { ··· 26 33 ''; 27 34 configFile = ./azure-config-user.nix; 28 35 format = "raw"; 29 - inherit (cfg) diskSize; 36 + inherit (cfg) diskSize contents; 30 37 inherit config lib pkgs; 31 38 }; 32 39