immich: Move out of container
This commit is contained in:
parent
aaf705b7d6
commit
c7c1f6f2cf
5 changed files with 14 additions and 29 deletions
|
|
@ -2,7 +2,7 @@
|
|||
imports = [
|
||||
./copyparty.nix
|
||||
# ./forgejo.nix
|
||||
# ./immich.nix
|
||||
./immich.nix
|
||||
./jellyfin.nix
|
||||
# ./minecraft.nix
|
||||
./samba.nix
|
||||
|
|
|
|||
|
|
@ -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";
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -18,6 +18,11 @@
|
|||
"tcp:443" = "https://localhost:8096";
|
||||
};
|
||||
};
|
||||
photos = {
|
||||
endpoints = {
|
||||
"tcp:443" = "https://localhost:2283";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue