summary refs log tree commit diff
path: root/nixos/modules/virtualisation/azure-image.nix
diff options
context:
space:
mode:
authorEvgeny Egorochkin <phreedom@yandex.ru>2016-01-10 11:35:44 +0200
committerEvgeny Egorochkin <phreedom@yandex.ru>2016-01-10 11:35:44 +0200
commitada9b3b666e58158223686be37d8641c42748575 (patch)
tree12dd7396dbd3cbfd0996525fd7df7877aefd9f64 /nixos/modules/virtualisation/azure-image.nix
parent01130e502a60665ffa2cc78888eec74811ff7c1b (diff)
downloadnixpkgs-ada9b3b666e58158223686be37d8641c42748575.tar
nixpkgs-ada9b3b666e58158223686be37d8641c42748575.tar.gz
nixpkgs-ada9b3b666e58158223686be37d8641c42748575.tar.bz2
nixpkgs-ada9b3b666e58158223686be37d8641c42748575.tar.lz
nixpkgs-ada9b3b666e58158223686be37d8641c42748575.tar.xz
nixpkgs-ada9b3b666e58158223686be37d8641c42748575.tar.zst
nixpkgs-ada9b3b666e58158223686be37d8641c42748575.zip
azure-image: azure resource manager doesn't base64-encode custom data, unlike azure service manager
Diffstat (limited to 'nixos/modules/virtualisation/azure-image.nix')
-rw-r--r--nixos/modules/virtualisation/azure-image.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/nixos/modules/virtualisation/azure-image.nix b/nixos/modules/virtualisation/azure-image.nix
index 1ab869cd6a8..08944e641d7 100644
--- a/nixos/modules/virtualisation/azure-image.nix
+++ b/nixos/modules/virtualisation/azure-image.nix
@@ -105,7 +105,7 @@ in
       path  = [ pkgs.coreutils ];
       script =
         ''
-          eval "$(base64 --decode /metadata/CustomData.bin)"
+          eval "$(cat /metadata/CustomData.bin)"
           if ! [ -z "$ssh_host_ecdsa_key" ]; then
             echo "downloaded ssh_host_ecdsa_key"
             echo "$ssh_host_ecdsa_key" > /etc/ssh/ssh_host_ed25519_key