make mount optional
Some checks failed
Activate Homelab Configuration / rebuild (push) Failing after 24s

This commit is contained in:
Satria 2026-03-29 11:22:50 +07:00
commit 7716d6e599
2 changed files with 15 additions and 6 deletions

View file

@ -7,7 +7,13 @@
in {
fileSystems = {
"/".autoResize = true;
} // lib.mapAttrs' (name: device:
lib.nameValuePair "/mnt/${name}" (globalOpts // { inherit device; })
} // lib.mapAttrs' (name: dev:
lib.nameValuePair "/mnt/${name}" (globalOpts // {
device = dev.path;
options = if dev.required == false then [
"nofail"
"x-systemd.automount"
] else [];
})
) homelab.disks;
}