Samuel Shuert | f68685d | 2023-10-28 20:07:56 -0400 | [diff] [blame] | 1 | { drive_paths, lib, ... }: |
2 | if drive_paths == null | ||||
3 | then {} | ||||
4 | else { | ||||
Skyler Grey | fe1740c | 2023-10-21 01:24:18 +0000 | [diff] [blame] | 5 | fileSystems = lib.mapAttrs' (name: value: { |
6 | name = value.path; | ||||
7 | value.device = "/dev/disk/by-uuid/${value.uuid}"; | ||||
8 | }) drive_paths; | ||||
TheCodedProf | bdc2345 | 2023-06-14 13:39:10 -0400 | [diff] [blame] | 9 | } |