summaryrefslogtreecommitdiffstats
path: root/hosts/poweredge
diff options
context:
space:
mode:
Diffstat (limited to 'hosts/poweredge')
-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 = {