immich migration settings

This commit is contained in:
Satria 2026-03-07 19:15:53 +07:00
commit 2e98b1ad83
3 changed files with 12 additions and 12 deletions

View file

@ -1,16 +1,11 @@
{ homelab, ... }: let
{ lib, homelab, ... }: let
globalOpts = {
fsType = "ext4";
autoFormat = true;
autoResize = true;
};
in {
fileSystems = {
# "/mnt/share" = globalOpts // {
# device = homelab.disks.share;
# };
"/mnt/data" = globalOpts // {
device = homelab.disks.data;
};
};
fileSystems = lib.mapAttrs' (name: device:
lib.nameValuePair "/mnt/${name}" (globalOpts // { inherit device; })
) homelab.disks;
}