From 5a4173740026b29d09b4b1972465e8ef02c718e3 Mon Sep 17 00:00:00 2001 From: Satria Date: Sat, 28 Feb 2026 22:31:48 +0700 Subject: [PATCH] add extra options --- modules/hardware/misc/disks.nix | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/modules/hardware/misc/disks.nix b/modules/hardware/misc/disks.nix index 7d55f71..4bdff01 100644 --- a/modules/hardware/misc/disks.nix +++ b/modules/hardware/misc/disks.nix @@ -1,12 +1,16 @@ -{ homelab, ... }: { +{ homelab, ... }: let + globalOpts = { + fsType = "ext4"; + autoFormat = true; + autoResize = true; + }; +in { fileSystems = { - "/mnt/share" = { + "/mnt/share" = globalOpts // { device = homelab.disks.share; - fsType = "ext4"; }; - "/mnt/data" = { + "/mnt/data" = globalOpts // { device = homelab.disks.data; - fsType = "ext4"; }; }; } \ No newline at end of file