diff options
author | ners <ners@gmx.ch> | 2023-10-08 19:35:14 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-08 19:35:14 +0200 |
commit | dccd00027e9f7f16575cc1793a3daf51b4dfe47f (patch) | |
tree | 6dba3f649f3c13c096c56d518731dada9260fda3 | |
parent | b4463d55195c6e99214e0c0d814104311705d531 (diff) | |
download | nixpkgs-dccd00027e9f7f16575cc1793a3daf51b4dfe47f.tar nixpkgs-dccd00027e9f7f16575cc1793a3daf51b4dfe47f.tar.gz nixpkgs-dccd00027e9f7f16575cc1793a3daf51b4dfe47f.tar.bz2 nixpkgs-dccd00027e9f7f16575cc1793a3daf51b4dfe47f.tar.lz nixpkgs-dccd00027e9f7f16575cc1793a3daf51b4dfe47f.tar.xz nixpkgs-dccd00027e9f7f16575cc1793a3daf51b4dfe47f.tar.zst nixpkgs-dccd00027e9f7f16575cc1793a3daf51b4dfe47f.zip |
nixos/azure: add contents module option (#244364)
-rw-r--r-- | nixos/modules/virtualisation/azure-image.nix | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/nixos/modules/virtualisation/azure-image.nix b/nixos/modules/virtualisation/azure-image.nix index 17cfd393830..39c6cab5980 100644 --- a/nixos/modules/virtualisation/azure-image.nix +++ b/nixos/modules/virtualisation/azure-image.nix @@ -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; }; |