nixos/system/hardware.nix

40 lines
1016 B
Nix
Raw Normal View History

2024-03-18 12:58:34 +01:00
{ config, pkgs, ... }:
{
2024-11-15 11:24:09 +01:00
environment.sessionVariables = { LIBVA_DRIVER_NAME = "nvidia"; };
2024-05-01 18:29:17 +02:00
2024-11-15 11:24:09 +01: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-07-08 00:42:43 +02:00
graphics =
{
enable = true;
enable32Bit = true;
2024-11-01 01:43:57 +01:00
extraPackages = with pkgs; [
2024-11-15 11:24:09 +01:00
vaapiVdpau
2024-11-22 16:11:43 +01:00
mangohud
2024-11-15 11:24:09 +01:00
nvidia-vaapi-driver
intel-media-driver
intel-vaapi-driver
libvdpau-va-gl
2024-11-03 10:53:20 +01:00
];
extraPackages32 = with pkgs.pkgsi686Linux; [
2024-11-22 16:11:43 +01:00
mangohud
2024-11-15 11:24:09 +01:00
intel-media-driver
intel-vaapi-driver
2024-11-01 01:43:57 +01:00
];
2024-07-08 00:42:43 +02:00
};
2024-04-21 06:49:09 +02:00
nvidia = {
modesetting.enable = true;
powerManagement.enable = false;
powerManagement.finegrained = false;
2024-11-03 10:33:02 +01:00
open = true;
2024-04-21 06:49:09 +02:00
nvidiaSettings = true;
2024-11-01 01:44:21 +01:00
package = config.boot.kernelPackages.nvidiaPackages.beta;
2024-04-21 06:49:09 +02:00
};
2024-03-18 12:58:34 +01:00
};
}