mirror of
https://git.adityakumar.xyz/nix-conf.git
synced 2024-11-21 19:52:52 +00:00
add opengl settings
This commit is contained in:
parent
516bc2c900
commit
96af961cbb
1 changed files with 5 additions and 1 deletions
|
@ -8,15 +8,19 @@
|
|||
hardware.enable = lib.mkEnableOption "enable hardware options";
|
||||
};
|
||||
config = lib.mkIf config.hardware.enable {
|
||||
environment.sessionVariables = {LIBVA_DRIVER_NAME = "iHD";};
|
||||
hardware = {
|
||||
#firmware = with pkgs; [firmwareLinuxNonfree];
|
||||
opengl = {
|
||||
enable = true;
|
||||
extraPackages = with pkgs; [vaapiIntel vaapiVdpau libvdpau-va-gl intel-media-driver];
|
||||
driSupport = true;
|
||||
driSupport32Bit = true;
|
||||
extraPackages = with pkgs; [vaapiIntel vaapiVdpau libvdpau-va-gl intel-media-driver intel-vaapi-driver rocm-opencl-icd rocm-opencl-runtime];
|
||||
};
|
||||
};
|
||||
nixpkgs.config.packageOverrides = pkgs: {
|
||||
vaapiIntel = pkgs.vaapiIntel.override {enableHybridCodec = true;};
|
||||
intel-vaapi-driver = pkgs.intel-vaapi-driver.override {enableHybridCodec = true;};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue