From 42aa8b3a7873c38a1769cef27b7215b683f25737 Mon Sep 17 00:00:00 2001 From: Grigory Shipunov Date: Tue, 21 Jan 2025 17:39:25 +0000 Subject: immich: init --- hosts/immich/immich.nix | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 hosts/immich/immich.nix (limited to 'hosts/immich/immich.nix') diff --git a/hosts/immich/immich.nix b/hosts/immich/immich.nix new file mode 100644 index 0000000..aa220bf --- /dev/null +++ b/hosts/immich/immich.nix @@ -0,0 +1,19 @@ +{ config, ... }: +{ + sops.secrets."immich.yaml" = { + sopsFile = ./immich.yaml; + owner = config.services.immich.user; + key = ""; + }; + + services.immich = { + enable = true; + host = "10.89.88.13"; + redis.enable = true; + database.createDB = true; + settings = null; # has to contain secrets https://github.com/immich-app/immich/discussions/14815 + environment = { + IMMICH_CONFIG_FILE = config.sops.secrets."immich.yaml".path; + }; + }; +} -- cgit v1.3.1