virtualization/azure: fixes

azure-agent: add option for verbose logging
azure-agent: disable ssh host key regeneration
azure-common: set verbose logging on
azure-image: increase size to 30GB

Changed files
+13 -6
nixos
+11 -5
nixos/modules/virtualisation/azure-agent.nix
···
###### interface
-
options.virtualisation.azure.agent.enable = mkOption {
-
default = false;
-
description = "Whether to enable the Windows Azure Linux Agent.";
+
options.virtualisation.azure.agent = {
+
enable = mkOption {
+
default = false;
+
description = "Whether to enable the Windows Azure Linux Agent.";
+
};
+
verboseLogging = mkOption {
+
default = false;
+
description = "Whether to enable verbose logging.";
+
};
};
###### implementation
···
Provisioning.DeleteRootPassword=n
# Generate fresh host key pair.
-
Provisioning.RegenerateSshHostKeyPair=y
+
Provisioning.RegenerateSshHostKeyPair=n
# Supported values are "rsa", "dsa" and "ecdsa".
Provisioning.SshHostKeyPairType=ed25519
···
Logs.Console=y
# Enable verbose logging (y|n)
-
Logs.Verbose=n
+
Logs.Verbose=${if cfg.verboseLogging then "y" else "n"}
# Root device timeout in seconds.
OS.RootDeviceScsiTimeout=300
+1
nixos/modules/virtualisation/azure-common.nix
···
require = [ ./azure-agent.nix ];
virtualisation.azure.agent.enable = true;
+
virtualisation.azure.agent.verboseLogging = true;
boot.kernelParams = [ "console=ttyS0" "earlyprintk=ttyS0" "rootdelay=300" "panic=1" "boot.panic_on_fail" ];
boot.initrd.kernelModules = [ "hv_vmbus" "hv_netvsc" "hv_utils" "hv_storvsc" ];
+1 -1
nixos/modules/virtualisation/azure-image.nix
···
with lib;
let
-
diskSize = "4096";
+
diskSize = "30720";
in
{
system.build.azureImage =