nix-conf/modules/nixos/hardware/default.nix
2024-04-11 11:20:39 +05:30

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;};
};
};
}