mirror of
https://git.adityakumar.xyz/nix-conf.git
synced 2024-11-14 00:59:44 +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";
|
hardware.enable = lib.mkEnableOption "enable hardware options";
|
||||||
};
|
};
|
||||||
config = lib.mkIf config.hardware.enable {
|
config = lib.mkIf config.hardware.enable {
|
||||||
|
environment.sessionVariables = {LIBVA_DRIVER_NAME = "iHD";};
|
||||||
hardware = {
|
hardware = {
|
||||||
#firmware = with pkgs; [firmwareLinuxNonfree];
|
#firmware = with pkgs; [firmwareLinuxNonfree];
|
||||||
opengl = {
|
opengl = {
|
||||||
enable = true;
|
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: {
|
nixpkgs.config.packageOverrides = pkgs: {
|
||||||
vaapiIntel = pkgs.vaapiIntel.override {enableHybridCodec = true;};
|
vaapiIntel = pkgs.vaapiIntel.override {enableHybridCodec = true;};
|
||||||
|
intel-vaapi-driver = pkgs.intel-vaapi-driver.override {enableHybridCodec = true;};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue