Immich

From NixOS Wiki
Revision as of 17:35, 15 November 2024 by Ww4 (talk | contribs) (Default port has changed as per this commit: https://github.com/NixOS/nixpkgs/commit/e3152f80bf675f9bad5f6d5d2a8b55b4ea5b85cc)

Immich is an open source photo and video management solution, designed to provide a self-hosted alternative for managing and backing up photos and videos, with a focus on privacy and ease of use.

Setup

Note: The module is not yet part of the latest NixOS stable release (24.05) and is only available in unstable.

The following example configuration will enable Immich locally.

/etc/nixos/configuration.nix
services.immich = {
  enable = true;
  environment.IMMICH_MACHINE_LEARNING_URL = "http://localhost:3003";
};

To see more options, visit the Immich module's options page.

After applying the above configuration you will be able to access Immich at http://localhost:2283.

Hardware Accelerated Transcoding using VA-API

Before anything else, make sure you have configured hardware acceleration on your system as described in Accelerated Video Playback.

To make use of hardware accelerated video transcoding using VA-API, add your Immich user to the render and video groups.

If you are using the default immich user, you can use the following snippet to enable VA-API support.

/etc/nixos/configuration.nix
users.users.immich.extraGroups = [ "video" "render" ];