nixos/system/hardware.nix

46 lines
1.1 KiB
Nix
Raw Normal View History

2024-03-18 11:58:34 +00:00
{ config, pkgs, ... }:
{
2024-09-13 16:42:10 +00:00
networking.wireless = {
enable = true;
networks = {
2024-10-31 12:14:45 +00:00
"benny" = {
psk = "loloplop";
2024-09-13 16:42:10 +00:00
};
};
};
2024-11-15 10:24:09 +00:00
environment.sessionVariables = { LIBVA_DRIVER_NAME = "nvidia"; };
2024-05-01 16:29:17 +00:00
2024-11-15 10:24:09 +00:00
nixpkgs.config.packageOverrides = pkgs: {
intel-vaapi-driver = pkgs.intel-vaapi-driver.override { enableHybridCodec = true; };
};
2024-04-21 04:49:09 +00:00
hardware = {
2024-05-01 16:29:17 +00:00
enableRedistributableFirmware = true;
cpu.intel.updateMicrocode = true;
2024-07-07 22:42:43 +00:00
graphics =
{
enable = true;
enable32Bit = true;
2024-11-01 00:43:57 +00:00
extraPackages = with pkgs; [
2024-11-15 10:24:09 +00:00
vaapiVdpau
nvidia-vaapi-driver
intel-media-driver
intel-vaapi-driver
libvdpau-va-gl
2024-11-03 09:53:20 +00:00
];
extraPackages32 = with pkgs.pkgsi686Linux; [
2024-11-15 10:24:09 +00:00
intel-media-driver
intel-vaapi-driver
2024-11-01 00:43:57 +00:00
];
2024-07-07 22:42:43 +00:00
};
2024-04-21 04:49:09 +00:00
nvidia = {
modesetting.enable = true;
powerManagement.enable = false;
powerManagement.finegrained = false;
2024-11-03 09:33:02 +00:00
open = true;
2024-04-21 04:49:09 +00:00
nvidiaSettings = true;
2024-11-01 00:44:21 +00:00
package = config.boot.kernelPackages.nvidiaPackages.beta;
2024-04-21 04:49:09 +00:00
};
2024-03-18 11:58:34 +00:00
};
}