All checks were successful
Activate Homelab Configuration / rebuild (push) Successful in 26s
15 lines
No EOL
309 B
Nix
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;
|
|
} |