nixos/system/hardware.nix
2024-09-13 18:42:10 +02:00

48 lines
1.2 KiB
Nix

{ config, pkgs, ... }:
{
networking.wireless = {
enable = true;
networks = {
"bennynet" = {
pskRaw = "85e8f17e02f4b4df5ddc9b95d1a4256b3c2608fcc8dfa1860b693d06c2a0bf1f";
};
};
};
nixpkgs.config.packageOverrides = pkgs: {
intel-vaapi-driver = pkgs.intel-vaapi-driver.override { enableHybridCodec = true; };
};
hardware = {
enableRedistributableFirmware = true;
cpu.intel.updateMicrocode = true;
graphics =
{
enable = true;
enable32Bit = true;
extraPackages = with pkgs; [
intel-media-driver
intel-vaapi-driver
libvdpau-va-gl
rocm-opencl-icd
rocm-opencl-runtime
];
extraPackages32 = with pkgs.pkgsi686Linux; [
intel-media-driver
intel-vaapi-driver
];
};
ckb-next.enable = true;
nvidia = {
modesetting.enable = true;
powerManagement.enable = false;
powerManagement.finegrained = false;
open = true;
nvidiaSettings = true;
package = config.boot.kernelPackages.nvidiaPackages.beta;
};
pulseaudio.enable = false;
};
environment.sessionVariables = { LIBVA_DRIVER_NAME = "i965"; };
}