spec(eientei): photoprism switch to vaapi hwaccel
This commit is contained in:
parent
b8e0f5539c
commit
c8406e885d
1 changed files with 9 additions and 2 deletions
|
@ -1,10 +1,11 @@
|
||||||
{
|
{ lib
|
||||||
|
, ... }: with lib; {
|
||||||
services.photoprism = {
|
services.photoprism = {
|
||||||
enable = true;
|
enable = true;
|
||||||
originalsPath = "/run/storage/aerial";
|
originalsPath = "/run/storage/aerial";
|
||||||
settings = {
|
settings = {
|
||||||
PHOTOPRISM_ADMIN_USER = "koishi";
|
PHOTOPRISM_ADMIN_USER = "koishi";
|
||||||
PHOTOPRISM_FFMPEG_ENCODER = "intel";
|
PHOTOPRISM_FFMPEG_ENCODER = "vaapi";
|
||||||
PHOTOPRISM_ORIGINALS_LIMIT = "-1";
|
PHOTOPRISM_ORIGINALS_LIMIT = "-1";
|
||||||
PHOTOPRISM_RESOLUTION_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 = [
|
environment.persistence."/nix/persist/fhs".directories = [
|
||||||
"/var/lib/photoprism"
|
"/var/lib/photoprism"
|
||||||
];
|
];
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue