fix fstype
All checks were successful
Activate Homelab Configuration / rebuild (push) Successful in 26s
All checks were successful
Activate Homelab Configuration / rebuild (push) Successful in 26s
This commit is contained in:
parent
5d082a11c3
commit
9e5f99b718
2 changed files with 7 additions and 11 deletions
|
|
@ -1,6 +1,5 @@
|
|||
{ lib, homelab, ... }: let
|
||||
globalOpts = {
|
||||
fsType = "ext4";
|
||||
autoFormat = true;
|
||||
autoResize = true;
|
||||
};
|
||||
|
|
@ -10,10 +9,7 @@ in {
|
|||
} // lib.mapAttrs' (name: dev:
|
||||
lib.nameValuePair "/mnt/${name}" (globalOpts // {
|
||||
device = dev.path;
|
||||
options = if dev.required == false then [
|
||||
"nofail"
|
||||
"x-systemd.automount"
|
||||
] else [ "defaults" ];
|
||||
fsType = dev.type;
|
||||
})
|
||||
) homelab.disks;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue