Immich: Difference between revisions
show, don't tell; follow MoS |
m fix typo |
||
Line 13: | Line 13: | ||
# ... | # ... | ||
# See: https://wiki.nixos.org/wiki/Accelerated_Video_Playback | # See: https://wiki.nixos.org/wiki/Accelerated_Video_Playback | ||
} | }; | ||
users.users.immich.extraGroups = [ "video" "render" ]; }} | users.users.immich.extraGroups = [ "video" "render" ]; }} | ||
Revision as of 12:55, 27 December 2024
Immich is a self-hosted photo and video management solution.
Installation
To install Immich, add the following to your NixOS configuration:
/etc/nixos/configuration.nix
services.immich.enable = true;
services.immich.port = 2283;
More options are available.
Tips and Tricks
Enabling Hardware Accelerated Video Transcoding
Add the Immich user to the render
and video
groups, and enable Accelerated Video Playback on your system:
/etc/nixos/configuration.nix
hardware.graphics = {
# ...
# See: https://wiki.nixos.org/wiki/Accelerated_Video_Playback
};
users.users.immich.extraGroups = [ "video" "render" ];
Using Immich behind Nginx
This is a typical Nginx configuration for Immich:
/etc/nixos/configuration.nix
services.nginx.virtualHosts."immich.example.com" = {
enableACME = true;
forceSSL = true;
locations."/" = {
proxyPass = "http://[::1]:${toString config.services.immich.port}";
proxyWebsockets = true;
};
};