diff options
| author | Grigory Shipunov | 2025-01-21 17:39:25 +0000 |
|---|---|---|
| committer | Grisha Shipunov | 2025-01-24 22:27:05 +0100 |
| commit | 42aa8b3a7873c38a1769cef27b7215b683f25737 (patch) | |
| tree | 1fde78c8ed662834e1b1eee6032dc4ba048f779a /hosts/immich/immich.nix | |
| parent | db13bc801c9cff7dc4e54e20add1a72b27edc45e (diff) | |
immich: init
Diffstat (limited to 'hosts/immich/immich.nix')
| -rw-r--r-- | hosts/immich/immich.nix | 19 |
1 files changed, 19 insertions, 0 deletions
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; + }; + }; +} |
