summary refs log tree commit diff
diff options
context:
space:
mode:
authorLassulus <github@lassul.us>2022-04-10 11:25:22 +0100
committerGitHub <noreply@github.com>2022-04-10 11:25:22 +0100
commit8b9c6a1b04e7cbdb7915d12a4f72bb8a8fb587e4 (patch)
tree872c07c0ab9ada9d79eb73fc7c387d463a4aaca3
parentc274af4b7bda4ea3bc32f81fb969c2a139537398 (diff)
parent831dbf4e0a8ce8d1b4d2830ead35461aba4a72ac (diff)
Merge pull request #115391 from kfollesdal/autoresize-azure
nixos/virtualisation/azure-common: add auto resize of os disk
-rw-r--r--nixos/modules/virtualisation/azure-common.nix6
1 files changed, 5 insertions, 1 deletions
diff --git a/nixos/modules/virtualisation/azure-common.nix b/nixos/modules/virtualisation/azure-common.nix
index 8efa177e30d1..dc7853b95032 100644
--- a/nixos/modules/virtualisation/azure-common.nix
+++ b/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