nix-flake/modules/hardware/misc/disks.nix
satr14 9e5f99b718
All checks were successful
Activate Homelab Configuration / rebuild (push) Successful in 26s
fix fstype
2026-03-29 11:30:08 +07:00

15 lines
No EOL
309 B
Nix

{ lib, homelab, ... }: let
globalOpts = {
autoFormat = true;
autoResize = true;
};
in {
fileSystems = {
"/".autoResize = true;
} // lib.mapAttrs' (name: dev:
lib.nameValuePair "/mnt/${name}" (globalOpts // {
device = dev.path;
fsType = dev.type;
})
) homelab.disks;
}