From aa4b3d83b207e7cf077b9c4a8462a0dba998d026 Mon Sep 17 00:00:00 2001 From: Tim Van Baak Date: Mon, 2 Dec 2024 05:38:51 +0000 Subject: [PATCH] backyard: add immich dataset and server --- machine/backyard/default.nix | 1 + machine/backyard/filesystems.nix | 2 ++ machine/backyard/immich.nix | 16 ++++++++++++++++ 3 files changed, 19 insertions(+) create mode 100644 machine/backyard/immich.nix diff --git a/machine/backyard/default.nix b/machine/backyard/default.nix index ad2ae6a..68806f9 100644 --- a/machine/backyard/default.nix +++ b/machine/backyard/default.nix @@ -5,6 +5,7 @@ ./hardware-configuration.nix ./filesystems.nix ./fileserver.nix + ./immich.nix ./jellyfin.nix ./samba.nix ]; diff --git a/machine/backyard/filesystems.nix b/machine/backyard/filesystems.nix index 2914a44..1aab849 100644 --- a/machine/backyard/filesystems.nix +++ b/machine/backyard/filesystems.nix @@ -33,6 +33,8 @@ in "/home/tvb/image" = zfsMount "pool/user/tvb/image"; "/pool/tvb/image" = bindMount "/home/tvb/image"; + + "/pool/immich" = zfsMount "pool/immich"; }; swapDevices = [ { device = "/dev/disk/by-uuid/cc464bb4-e1c8-46c0-adbb-ea1a3cfa5b03"; } ]; diff --git a/machine/backyard/immich.nix b/machine/backyard/immich.nix new file mode 100644 index 0000000..6a4135b --- /dev/null +++ b/machine/backyard/immich.nix @@ -0,0 +1,16 @@ +{ pkgs, ... }: + +{ + services.immich = { + enable = true; + host = "10.22.20.8"; + port = 2283; + openFirewall = true; + machine-learning.enable = false; + mediaLocation = "/pool/immich"; + settings = { + machineLearning.enabled = false; + newVersionCheck.enabled = false; + }; + }; +}