ma omo.r: enable vaapi

This commit is contained in:
makefu 2022-05-30 12:56:43 +02:00
parent 7e89bf5872
commit 12436ad8be
No known key found for this signature in database
GPG Key ID: 36F7711F3FC0F225
3 changed files with 22 additions and 2 deletions

View File

@ -28,7 +28,7 @@ in {
<stockholm/makefu/2configs/home-manager> <stockholm/makefu/2configs/home-manager>
<stockholm/makefu/2configs/home-manager/cli.nix> <stockholm/makefu/2configs/home-manager/cli.nix>
<stockholm/makefu/2configs/editor/neovim> <stockholm/makefu/2configs/editor/neovim>
<stockholm/makefu/2configs/storj/client.nix> # <stockholm/makefu/2configs/storj/client.nix>
<stockholm/makefu/2configs/backup/state.nix> <stockholm/makefu/2configs/backup/state.nix>
@ -98,6 +98,7 @@ in {
<stockholm/makefu/2configs/virtualisation/docker.nix> <stockholm/makefu/2configs/virtualisation/docker.nix>
<stockholm/makefu/2configs/bluetooth-mpd.nix> <stockholm/makefu/2configs/bluetooth-mpd.nix>
<stockholm/makefu/2configs/home/jellyfin.nix>
<stockholm/makefu/2configs/home/music.nix> <stockholm/makefu/2configs/home/music.nix>
<stockholm/makefu/2configs/home/photoprism.nix> <stockholm/makefu/2configs/home/photoprism.nix>
<stockholm/makefu/2configs/home/tonie.nix> <stockholm/makefu/2configs/home/tonie.nix>

View File

@ -39,7 +39,9 @@ let
in { in {
imports = imports =
[ # TODO: unlock home partition via ssh [ # TODO: unlock home partition via ssh
<stockholm/makefu/2configs/fs/sda-crypto-root.nix> ]; ./vaapi.nix
<stockholm/makefu/2configs/fs/sda-crypto-root.nix> ];
makefu.server.primary-itf = primaryInterface; makefu.server.primary-itf = primaryInterface;
system.activationScripts.createCryptFolders = '' system.activationScripts.createCryptFolders = ''
${lib.concatMapStringsSep "\n" ${lib.concatMapStringsSep "\n"

View File

@ -0,0 +1,17 @@
{ pkgs, ... }:
{
nixpkgs.config.packageOverrides = pkgs: {
vaapiIntel = pkgs.vaapiIntel.override { enableHybridCodec = true; };
};
hardware.opengl = {
enable = true;
extraPackages = with pkgs; [
intel-media-driver # LIBVA_DRIVER_NAME=iHD
vaapiIntel # LIBVA_DRIVER_NAME=i965 (older but works better for Firefox/Chromium)
vaapiVdpau
libvdpau-va-gl
];
};
hardware.opengl.extraPackages32 = with pkgs.pkgsi686Linux; [ vaapiIntel ];
environment.systemPackages = [ pkgs.libva-utils ];
}