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