Skip to content

Commit

Permalink
feat(nix): gpu
Browse files Browse the repository at this point in the history
  • Loading branch information
nagy135 committed Feb 7, 2022
1 parent 11d7142 commit 879f948
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
2 changes: 1 addition & 1 deletion nixos/configuration.nix
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
./hardware-configuration.nix
./packages.nix
./pipewire.nix
./gpu.nix
];

# Use the systemd-boot EFI boot loader.
Expand Down Expand Up @@ -122,4 +123,3 @@
system.stateVersion = "21.11"; # Did you read the comment?

}

15 changes: 15 additions & 0 deletions nixos/gpu.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{ config, 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
];
};
}

0 comments on commit 879f948

Please sign in to comment.