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

@ -17,7 +17,7 @@
domain = "satr14.my.id"; # root domain for dns, ssl certs, reverse proxy, etc. domain = "satr14.my.id"; # root domain for dns, ssl certs, reverse proxy, etc.
cf-tunnel-id = "26318288-cdd7-4e58-904b-c45f10d3e40a"; cf-tunnel-id = "26318288-cdd7-4e58-904b-c45f10d3e40a";
disks = { disks = {
share = "/dev/disk/by-uuid/ac61f6c8-ac20-41dd-ba93-41c4a225dc98"; # disk for nas share gallery = "/dev/disk/by-uuid/834f51c1-90ee-4601-ba76-ef0419198d67"; # disk for photo gallery
data = "/dev/disk/by-uuid/a5752dd6-092d-484c-969c-2fdc7cb4a5f0"; # disk for app data data = "/dev/disk/by-uuid/a5752dd6-092d-484c-969c-2fdc7cb4a5f0"; # disk for app data
}; };
records = [ records = [

View file

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

View file

@ -1,4 +1,4 @@
{ ... }: { { homelab, ... }: {
users.users.immich.extraGroups = [ "video" "render" ]; users.users.immich.extraGroups = [ "video" "render" ];
services = { services = {
@ -6,9 +6,14 @@
enable = true; enable = true;
port = 2283; port = 2283;
host = "127.0.0.1"; host = "127.0.0.1";
mediaLocation = "/mnt/data/immich"; mediaLocation = "/mnt/gallery/media";
accelerationDevices = null; accelerationDevices = null;
machine-learning.enable = true; machine-learning.enable = true;
redis.enable = true;
settings = {
newVersionCheck.enabled = true;
server.externalDomain = "https://gallery.${homelab.domain}";
};
}; };
immich-public-proxy = { immich-public-proxy = {
enable = true; enable = true;