feat(home-server): configure GPU & jellyfin acceleration
This commit is contained in:
parent
441ce548f2
commit
f96a3228d9
|
@ -3,9 +3,8 @@
|
|||
{
|
||||
boot.initrd.kernelModules = [ "i915" ];
|
||||
|
||||
nixpkgs.config.packageOverrides = pkgs: {
|
||||
vaapiIntel = pkgs.vaapiIntel.override { enableHybridCodec = true; };
|
||||
};
|
||||
# kaby lake
|
||||
boot.kernelParams = [ "i915.enable_guc=3" ];
|
||||
|
||||
environment.variables = {
|
||||
VDPAU_DRIVER =
|
||||
|
@ -14,7 +13,6 @@
|
|||
|
||||
hardware.opengl.extraPackages = with pkgs; [
|
||||
vaapiIntel
|
||||
vaapiVdpau
|
||||
libvdpau-va-gl
|
||||
intel-media-driver
|
||||
intel-compute-runtime
|
||||
|
|
|
@ -12,6 +12,7 @@ in with builtins; {
|
|||
imports = [
|
||||
./hardware/base.nix
|
||||
./hardware/gpu-intel.nix
|
||||
./desktop/x11.nix
|
||||
./system/server.nix
|
||||
./modules/emailNotify.nix
|
||||
./services/mail.nix
|
||||
|
|
|
@ -9,7 +9,6 @@
|
|||
users.users.${config.services.jellyfin.user}.extraGroups =
|
||||
[ "video" "render" ];
|
||||
systemd.services.jellyfin.serviceConfig = {
|
||||
PrivateDevices = lib.mkForce false;
|
||||
DeviceAllow = lib.mkForce [ "/dev/dri/renderD128" ];
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue