From 301333dcc98df2c0e748b08aa4fbdfa2360d11a8 Mon Sep 17 00:00:00 2001 From: Satria Date: Sun, 8 Mar 2026 22:13:09 +0700 Subject: [PATCH] auto root partition resize --- modules/hardware/misc/disks.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/modules/hardware/misc/disks.nix b/modules/hardware/misc/disks.nix index f2272fa..ea0948a 100644 --- a/modules/hardware/misc/disks.nix +++ b/modules/hardware/misc/disks.nix @@ -5,7 +5,9 @@ autoResize = true; }; in { - fileSystems = lib.mapAttrs' (name: device: + fileSystems = { + "/".autoResize = true; + } // lib.mapAttrs' (name: device: lib.nameValuePair "/mnt/${name}" (globalOpts // { inherit device; }) ) homelab.disks; } \ No newline at end of file