2024-04-11 05:50:39 +00:00
|
|
|
{
|
|
|
|
config,
|
|
|
|
lib,
|
|
|
|
pkgs,
|
|
|
|
...
|
|
|
|
}: {
|
|
|
|
options = {
|
|
|
|
hardware.enable = lib.mkEnableOption "enable hardware options";
|
2024-04-10 17:31:45 +00:00
|
|
|
};
|
2024-04-11 05:50:39 +00:00
|
|
|
config = lib.mkIf config.hardware.enable {
|
|
|
|
hardware = {
|
|
|
|
#firmware = with pkgs; [firmwareLinuxNonfree];
|
|
|
|
opengl = {
|
|
|
|
enable = true;
|
|
|
|
extraPackages = with pkgs; [vaapiIntel vaapiVdpau libvdpau-va-gl intel-media-driver];
|
|
|
|
};
|
|
|
|
};
|
|
|
|
nixpkgs.config.packageOverrides = pkgs: {
|
|
|
|
vaapiIntel = pkgs.vaapiIntel.override {enableHybridCodec = true;};
|
|
|
|
};
|
2024-04-11 05:08:01 +00:00
|
|
|
};
|
2024-04-10 17:31:45 +00:00
|
|
|
}
|