forked from nico/dots
jellyfin: add hardware acceleration
This commit is contained in:
parent
1ffdd56697
commit
63e37750a8
2 changed files with 14 additions and 1 deletions
|
|
@ -10,7 +10,18 @@
|
|||
networking.hostName = "pluto";
|
||||
|
||||
hardware.graphics.enable = true;
|
||||
hardware.graphics.extraPackages = with pkgs; [ intel-media-driver ];
|
||||
environment.sessionVariables.LIBVA_DRIVER_NAME = "iHD";
|
||||
hardware.graphics.extraPackages = with pkgs; [
|
||||
intel-media-driver # For Broadwell (2014) or newer processors. LIBVA_DRIVER_NAME=iHD
|
||||
libva-vdpau-driver # Previously vaapiVdpau
|
||||
intel-compute-runtime # OpenCL filter support (hardware tonemapping and subtitle burn-in)
|
||||
# OpenCL support for intel CPUs before 12th gen
|
||||
# see: https://github.com/NixOS/nixpkgs/issues/356535
|
||||
# intel-compute-runtime-legacy1
|
||||
vpl-gpu-rt # QSV on 11th gen or newer
|
||||
intel-media-sdk # QSV up to 11th gen
|
||||
intel-ocl # OpenCL support
|
||||
];
|
||||
|
||||
services.logind.lidSwitchExternalPower = "ignore";
|
||||
}
|
||||
|
|
|
|||
|
|
@ -8,6 +8,8 @@
|
|||
group = "media";
|
||||
};
|
||||
|
||||
users.users.jellyfin.extraGroups = [ "render" "video" ];
|
||||
|
||||
services.caddy.virtualHosts."watch.${config.homelab.domain}" = {
|
||||
# useACMEHost = config.homelab.domain;
|
||||
extraConfig = ''
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue