diff options
author | Jean-Baptiste Giraudeau <jb.giraudeau@lombardodier.com> | 2018-04-17 16:04:04 +0200 |
---|---|---|
committer | Jean-Baptiste Giraudeau <jb.giraudeau@lombardodier.com> | 2018-04-17 16:04:04 +0200 |
commit | 1d971b7a9f75333ace1f0e9c792a3f3c23221e8c (patch) | |
tree | 0bb14e241c933b30bdd02120e1de6d805c1dea1f /nixos | |
parent | 0ebf6adcf79c25055244cddef671b5574b4dd2bc (diff) | |
download | nixpkgs-1d971b7a9f75333ace1f0e9c792a3f3c23221e8c.tar nixpkgs-1d971b7a9f75333ace1f0e9c792a3f3c23221e8c.tar.gz nixpkgs-1d971b7a9f75333ace1f0e9c792a3f3c23221e8c.tar.bz2 nixpkgs-1d971b7a9f75333ace1f0e9c792a3f3c23221e8c.tar.lz nixpkgs-1d971b7a9f75333ace1f0e9c792a3f3c23221e8c.tar.xz nixpkgs-1d971b7a9f75333ace1f0e9c792a3f3c23221e8c.tar.zst nixpkgs-1d971b7a9f75333ace1f0e9c792a3f3c23221e8c.zip |
azure-agent: add option to control auto mount
of resource disk.
Diffstat (limited to 'nixos')
-rw-r--r-- | nixos/modules/virtualisation/azure-agent.nix | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/nixos/modules/virtualisation/azure-agent.nix b/nixos/modules/virtualisation/azure-agent.nix index 201d5f71ba3..e300f78241b 100644 --- a/nixos/modules/virtualisation/azure-agent.nix +++ b/nixos/modules/virtualisation/azure-agent.nix @@ -66,6 +66,10 @@ in default = false; description = "Whether to enable verbose logging."; }; + mountResourceDisk = mkOption { + default = true; + description = "Whether the agent should format (ext4) and mount the resource disk to /mnt/resource."; + }; }; ###### implementation @@ -112,7 +116,7 @@ in Provisioning.ExecuteCustomData=n # Format if unformatted. If 'n', resource disk will not be mounted. - ResourceDisk.Format=y + ResourceDisk.Format=${if cfg.mountResourceDisk then "y" else "n"} # File system on the resource disk # Typically ext3 or ext4. FreeBSD images should use 'ufs2' here. |