commit | bdc2345acae7c87fd97cb37165b2a3609f63a86e | [log] [tgz] |
---|---|---|
author | TheCodedProf <samuel.shuert@gmail.com> | Wed Jun 14 13:39:10 2023 -0400 |
committer | TheCodedProf <samuel.shuert@gmail.com> | Wed Jun 14 13:39:10 2023 -0400 |
tree | d95d035b6ea0ee398532854bb7478fb4437460f0 | |
parent | e6f67ce43e3f1a3aae0573c8f4ad0cc49fcb4245 [diff] [blame] |
add syncthing.nix, add drivePaths.nix for mounting drive_paths
diff --git a/modules/drivePaths.nix b/modules/drivePaths.nix new file mode 100644 index 0000000..addd64b --- /dev/null +++ b/modules/drivePaths.nix
@@ -0,0 +1,8 @@ +{ drive_paths, lib, ... }: { + fileSystems = lib.mapAttrs' + (name: value: { + name = value.path; + value.device = "/dev/disk/by-uuid/${value.uuid}"; + }) + drive_paths; +}