fix(eientei): photoprism switch to vaapi hwaccel

This commit is contained in:
514fpv 2024-03-07 21:54:15 +08:00
parent 01e8b44ae9
commit 067db9bb0f
Signed by: koishi
SSH key fingerprint: SHA256:axz0uIzzY+5W19i7QOUuiw5LSqhKfCBKPf3L4xFRxLw

View file

@ -1,10 +1,11 @@
{
{ lib
, ... }: with lib; {
services.photoprism = {
enable = true;
originalsPath = "/run/storage/aerial";
settings = {
PHOTOPRISM_ADMIN_USER = "koishi";
PHOTOPRISM_FFMPEG_ENCODER = "intel";
PHOTOPRISM_FFMPEG_ENCODER = "vaapi";
PHOTOPRISM_ORIGINALS_LIMIT = "-1";
PHOTOPRISM_RESOLUTION_LIMIT = "-1";
};
@ -23,6 +24,12 @@
};
};
systemd.services.photoprism.serviceConfig = {
PrivateDevices = mkForce false;
DevicePolicy = "closed";
DeviceAllow = [ "/dev/dri/renderD128 rw" ];
};
environment.persistence."/nix/persist/fhs".directories = [
"/var/lib/photoprism"
];