ma omo.r: enable vaapi
This commit is contained in:
parent
7e89bf5872
commit
12436ad8be
@ -28,7 +28,7 @@ in {
|
||||
<stockholm/makefu/2configs/home-manager>
|
||||
<stockholm/makefu/2configs/home-manager/cli.nix>
|
||||
<stockholm/makefu/2configs/editor/neovim>
|
||||
<stockholm/makefu/2configs/storj/client.nix>
|
||||
# <stockholm/makefu/2configs/storj/client.nix>
|
||||
|
||||
|
||||
<stockholm/makefu/2configs/backup/state.nix>
|
||||
@ -98,6 +98,7 @@ in {
|
||||
<stockholm/makefu/2configs/virtualisation/docker.nix>
|
||||
<stockholm/makefu/2configs/bluetooth-mpd.nix>
|
||||
|
||||
<stockholm/makefu/2configs/home/jellyfin.nix>
|
||||
<stockholm/makefu/2configs/home/music.nix>
|
||||
<stockholm/makefu/2configs/home/photoprism.nix>
|
||||
<stockholm/makefu/2configs/home/tonie.nix>
|
||||
|
@ -39,7 +39,9 @@ let
|
||||
in {
|
||||
imports =
|
||||
[ # TODO: unlock home partition via ssh
|
||||
./vaapi.nix
|
||||
<stockholm/makefu/2configs/fs/sda-crypto-root.nix> ];
|
||||
|
||||
makefu.server.primary-itf = primaryInterface;
|
||||
system.activationScripts.createCryptFolders = ''
|
||||
${lib.concatMapStringsSep "\n"
|
||||
|
17
makefu/1systems/omo/hw/vaapi.nix
Normal file
17
makefu/1systems/omo/hw/vaapi.nix
Normal 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 ];
|
||||
}
|
Loading…
Reference in New Issue
Block a user