mirror of
https://git.adityakumar.xyz/nix-conf.git
synced 2024-11-14 00:59:44 +00:00
22 lines
523 B
Nix
22 lines
523 B
Nix
{
|
|
config,
|
|
lib,
|
|
pkgs,
|
|
...
|
|
}: {
|
|
options = {
|
|
hardware.enable = lib.mkEnableOption "enable hardware options";
|
|
};
|
|
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;};
|
|
};
|
|
};
|
|
}
|