Immich: Difference between revisions
I was unable to upload videos to Immich. Turned out that nginx was refusing upload of large files. So I took instructions from https://v1.122.2.archive.immich.app/docs/administration/reverse-proxy#nginx-example-config and added some missing config for nginx. |
Updated the immich hardware acceleration docs to reflect the changes in https://github.com/NixOS/nixpkgs/pull/376339 |
||
(3 intermediate revisions by 2 users not shown) | |||
Line 5: | Line 5: | ||
{{file|/etc/nixos/configuration.nix|nix|3=services.immich.enable = true; | {{file|/etc/nixos/configuration.nix|nix|3=services.immich.enable = true; | ||
services.immich.port = 2283;}} | services.immich.port = 2283;}} | ||
More options are available: {{nixos:option|services.immich.}} | |||
== Tips and Tricks == | == Tips and Tricks == | ||
=== Enabling Hardware Accelerated Video Transcoding === | === Enabling Hardware Accelerated Video Transcoding === | ||
Add the Immich user to the <code>render</code> and <code>video</code> groups, and enable [[Accelerated Video Playback]] on your system:{{file|/etc/nixos/configuration.nix|nix|3=hardware.graphics = { | Add the Immich user to the <code>render</code> and <code>video</code> groups, override the <code>PrivateDevices</code> service config setting to allow the service to access <code>/dev/dri/</code> and enable [[Accelerated Video Playback]] on your system:{{file|/etc/nixos/configuration.nix|nix|3=# `null` will give access to all devices. | ||
# You may want to restrict this by using something like `[ "/dev/dri/renderD128" ]` | |||
services.immich.accelerationDevices = null; | |||
hardware.graphics = { | |||
# ... | # ... | ||
# 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" ]; }} | ||