fix ports

This commit is contained in:
Motiejus Jakštys 2024-09-27 15:11:54 +03:00
parent f5a0bab032
commit 6f4d946c90
2 changed files with 5 additions and 4 deletions

View File

@ -23,7 +23,8 @@ rec {
ports = { ports = {
grafana = 3000; grafana = 3000;
gitea = 3001; gitea = 3001;
immich = 3003; immich-server = 3002;
immich-machine-learning = 3003; # as of writing, hardcoded in the immich module
soju = 6697; soju = 6697;
soju-ws = 6698; soju-ws = 6698;

View File

@ -20,7 +20,7 @@ in
config = lib.mkIf cfg.enable { config = lib.mkIf cfg.enable {
services.immich = { services.immich = {
enable = true; enable = true;
port = myData.ports.immich; port = myData.ports.immich-server;
package = pkgs.pkgs-unstable.immich; package = pkgs.pkgs-unstable.immich;
mediaLocation = "/var/cache/immich/userdata"; mediaLocation = "/var/cache/immich/userdata";
}; };
@ -28,13 +28,13 @@ in
mj.services.friendlyport.ports = [ mj.services.friendlyport.ports = [
{ {
subnets = [ myData.subnets.tailscale.cidr ]; subnets = [ myData.subnets.tailscale.cidr ];
tcp = [ myData.ports.immich ]; tcp = [ myData.ports.immich-server ];
} }
]; ];
systemd = { systemd = {
tmpfiles.rules = [ "d /var/cache/immich/userdata 0700 immich immich -" ]; tmpfiles.rules = [ "d /var/cache/immich/userdata 0700 immich immich -" ];
services.immich.serviceConfig = { services.immich-server.serviceConfig = {
ProtectHome = lib.mkForce "tmpfs"; ProtectHome = lib.mkForce "tmpfs";
CacheDirectory = "immich"; CacheDirectory = "immich";
BindPaths = lib.mapAttrsToList ( BindPaths = lib.mapAttrsToList (