nixos/system/hardware.nix

33 lines
858 B
Nix
Raw Normal View History

2024-03-18 12:58:34 +01:00
{ config, pkgs, ... }:
{
2024-05-01 18:29:17 +02:00
nixpkgs.config.packageOverrides = pkgs: {
intel-vaapi-driver = pkgs.intel-vaapi-driver.override { enableHybridCodec = true; };
};
2024-04-21 06:49:09 +02:00
hardware = {
2024-05-01 18:29:17 +02:00
enableRedistributableFirmware = true;
cpu.intel.updateMicrocode = true;
2024-04-21 06:49:09 +02:00
opengl = {
enable = true;
driSupport = true;
driSupport32Bit = true;
2024-05-01 18:29:17 +02:00
extraPackages = with pkgs; [
intel-media-driver
intel-vaapi-driver
libvdpau-va-gl
];
2024-04-21 06:49:09 +02:00
};
ckb-next.enable = true;
nvidia = {
modesetting.enable = true;
powerManagement.enable = false;
powerManagement.finegrained = false;
open = false;
nvidiaSettings = true;
2024-05-14 17:42:09 +02:00
package = config.boot.kernelPackages.nvidiaPackages.beta;
2024-04-21 06:49:09 +02:00
};
pulseaudio.enable = false;
2024-03-18 12:58:34 +01:00
};
2024-05-01 18:29:17 +02:00
environment.sessionVariables = { LIBVA_DRIVER_NAME = "iHD"; };
2024-03-18 12:58:34 +01:00
}