nixos/virtualisation/azure-common: add auto resize of os disk

At the moment os disk do not automatically expand in Azure. This commit
fixes this so os disk expands to whole disk when created or changed.
main
kfollesdal 3 years ago committed by Kristoffer Føllesdal
parent b426ea250c
commit 831dbf4e0a
  1. 6
      nixos/modules/virtualisation/azure-common.nix

@ -21,7 +21,11 @@ with lib;
# way to select them anyway.
boot.loader.grub.configurationLimit = 0;
fileSystems."/".device = "/dev/disk/by-label/nixos";
fileSystems."/" = {
device = "/dev/disk/by-label/nixos";
fsType = "ext4";
autoResize = true;
};
# Allow root logins only using the SSH key that the user specified
# at instance creation time, ping client connections to avoid timeouts

Loading…
Cancel
Save