my nix configs for my servers and desktop

add immich

Changed files
+28
modules
immich
+28
modules/immich/default.nix
···
+
{ config, lib, pkgs, ... }:
+
+
with lib;
+
let
+
cfg = config.modules.immich;
+
+
immichRoot = "/storage/immich"; #TODO make this configurable through nix
+
immichPhotos = "${immichRoot}/photos";
+
in
+
{
+
options = {
+
modules = {
+
immich = {
+
enable = mkEnableOption "Deploy immich";
+
};
+
};
+
};
+
+
config = mkIf cfg.enable {
+
services.immich = {
+
enable = true;
+
port = 2283;
+
host = "photos.nekomimi.pet";
+
mediaLocation = immichPhotos;
+
settings = null;
+
};
+
};
+
};