Immich: Difference between revisions

Dander (talk | contribs)
m use nixos option
Add PrivateDevices override for hardware acceleration to work
Line 10: Line 10:


=== 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=hardware.graphics = {  
  # ...
  # ...
  # See: https://wiki.nixos.org/wiki/Accelerated_Video_Playback
  # See: https://wiki.nixos.org/wiki/Accelerated_Video_Playback
};
};
systemd.services."immich-server".serviceConfig.PrivateDevices = lib.mkForce false;
users.users.immich.extraGroups = [ "video" "render" ]; }}
users.users.immich.extraGroups = [ "video" "render" ]; }}