Merge pull request #115391 from kfollesdal/autoresize-azure

nixos/virtualisation/azure-common: add auto resize of os disk
This commit is contained in:
Lassulus 2022-04-10 11:25:22 +01:00 committed by GitHub
commit 8b9c6a1b04
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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