summaryrefslogtreecommitdiffstats
path: root/hosts/poweredge/immich.nix
diff options
context:
space:
mode:
authorTim Keller <tjk@tjkeller.xyz>2026-10-30 18:08:43 -0500
committerTim Keller <tjk@tjkeller.xyz>2026-10-30 18:08:43 -0500
commita2a283380b7a98b18ec208c162318bd2be7469d1 (patch)
tree3e1ead8f1172104c998366e4f6ae19c3e7664ac8 /hosts/poweredge/immich.nix
parent382ef120eadf53cc6c8c712a9244697897548998 (diff)
downloadnixos-a2a283380b7a98b18ec208c162318bd2be7469d1.tar.xz
nixos-a2a283380b7a98b18ec208c162318bd2be7469d1.zip
disable ML service and setup support for public immich instance
Diffstat (limited to 'hosts/poweredge/immich.nix')
-rw-r--r--hosts/poweredge/immich.nix19
1 files changed, 15 insertions, 4 deletions
diff --git a/hosts/poweredge/immich.nix b/hosts/poweredge/immich.nix
index 444a0f2..ff0275c 100644
--- a/hosts/poweredge/immich.nix
+++ b/hosts/poweredge/immich.nix
@@ -35,16 +35,18 @@ in {
"/dev/nvidia-modeset" = { hostPath = "/dev/nvidia-modeset"; isReadOnly = false; };
};
- config = { lib, pkgs, config, ... }: {
+ config = { lib, config, ... }: {
imports = [ ./nvidia.nix ];
# Network
networking.interfaces.eth0.useDHCP = true;
- networking.firewall.allowedTCPPorts = [ 80 ]; # Caddy
+ networking.firewall.allowedTCPPorts = [ 80 2283 ]; # Caddy + immich
# Immich
services.immich = {
enable = true;
+ host = "0.0.0.0";
+ package = pkgs.unstable.immich;
accelerationDevices = [
"/dev/nvidia0"
"/dev/nvidiactl"
@@ -60,9 +62,18 @@ in {
};
# Enable the ML microservice with CUDA
- machine-learning.enable = true;
+ # FIXME Disabled since the ML service w/ CUDA uses almost all the vram on my gpu
+ machine-learning.enable = false;
};
- environment.systemPackages = with pkgs; [ immich immich-cli ];
+ environment.systemPackages = with pkgs.unstable; [ immich immich-cli ];
+
+ # TODO IPP is missing a lot of features right now. Check back later
+ ## Immich public proxy
+ #services.immich-public-proxy = {
+ # enable = true;
+ # immichUrl = "http://localhost:2283";
+ # package = pkgs.unstable.immich-public-proxy;
+ #};
# Reverse proxy
services.caddy = {