fix ports
This commit is contained in:
parent
f5a0bab032
commit
6f4d946c90
3
data.nix
3
data.nix
@ -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;
|
||||||
|
@ -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 (
|
||||||
|
Loading…
Reference in New Issue
Block a user