nix-config/hosts/nixedo/modules/immich.nix

26 lines
515 B
Nix
Raw Normal View History

2025-06-24 18:14:16 +01:00
{ config, pkgs, ... }:
2024-12-10 21:40:33 +00:00
2024-11-26 08:40:00 +00:00
{
2025-06-24 18:14:16 +01:00
services.immich = {
enable = true;
group = "media";
mediaLocation = "/mnt/media/immich";
2025-04-28 01:58:11 +01:00
};
2024-11-26 08:40:00 +00:00
2025-06-24 18:14:16 +01:00
services.nginx.virtualHosts."photos.oliverdavies.uk" = {
forceSSL = true;
useACMEHost = "oliverdavies.uk";
2025-06-24 18:14:16 +01:00
locations."/" = {
proxyPass = "http://localhost:${toString config.services.immich.port}";
proxyWebsockets = true;
recommendedProxySettings = true;
};
2025-04-28 01:58:11 +01:00
};
2025-06-24 18:14:16 +01:00
environment.systemPackages = with pkgs; [
immich-cli
immich-go
];
2024-11-26 08:40:00 +00:00
}