make mount optional
Some checks failed
Activate Homelab Configuration / rebuild (push) Failing after 24s
Some checks failed
Activate Homelab Configuration / rebuild (push) Failing after 24s
This commit is contained in:
parent
78731e97ba
commit
7716d6e599
2 changed files with 15 additions and 6 deletions
|
|
@ -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;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue