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;
}

View file

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