immich: Move out of container

This commit is contained in:
Jan Kremer 2026-02-05 13:35:02 +01:00
parent aaf705b7d6
commit c7c1f6f2cf
No known key found for this signature in database
5 changed files with 14 additions and 29 deletions

View file

@ -18,7 +18,7 @@
home = {
username = "jan";
homeDirectory = "/Users/jan";
stateVersion = "24.05";
stateVersion = "25.11";
## Mute login message in terminal
file.".hushlogin".text = "";

View file

@ -2,7 +2,7 @@
imports = [
./copyparty.nix
# ./forgejo.nix
# ./immich.nix
./immich.nix
./jellyfin.nix
# ./minecraft.nix
./samba.nix

View file

@ -1,30 +1,10 @@
{
containers.photos = {
autoStart = true;
bindMounts = {
"/var/lib/immich" = {
hostPath = "/mnt/sdb1/photos";
isReadOnly = false;
};
};
config = {
services = {
immich = {
enable = true;
# port = 2283;
host = "photos.alpine-centauri.ts.net";
};
tailscale = {
enable = true;
useRoutingFeatures = "server";
interfaceName = "userspace-networking";
};
};
system.stateVersion = "24.05";
services = {
immich = {
enable = true;
# port = 2283;
accelerationDevices = [ "/dev/dri/renderD128" ];
mediaLocation = "/mnt/sdb1/photos";
};
};
}

View file

@ -18,6 +18,11 @@
"tcp:443" = "https://localhost:8096";
};
};
photos = {
endpoints = {
"tcp:443" = "https://localhost:2283";
};
};
};
};
};