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.
This commit is contained in:
kfollesdal 2021-03-08 09:36:02 +01:00 committed by Kristoffer Føllesdal
parent b426ea250c
commit 831dbf4e0a

View File

@ -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