46 lines
1.1 KiB
Nix
46 lines
1.1 KiB
Nix
{ config, pkgs, ... }:
|
|
{
|
|
networking.wireless = {
|
|
enable = true;
|
|
networks = {
|
|
"benny" = {
|
|
psk = "loloplop";
|
|
};
|
|
};
|
|
};
|
|
environment.sessionVariables = { LIBVA_DRIVER_NAME = "nvidia"; };
|
|
|
|
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; [
|
|
vaapiVdpau
|
|
nvidia-vaapi-driver
|
|
intel-media-driver
|
|
intel-vaapi-driver
|
|
libvdpau-va-gl
|
|
];
|
|
extraPackages32 = with pkgs.pkgsi686Linux; [
|
|
intel-media-driver
|
|
intel-vaapi-driver
|
|
];
|
|
|
|
};
|
|
nvidia = {
|
|
modesetting.enable = true;
|
|
powerManagement.enable = false;
|
|
powerManagement.finegrained = false;
|
|
open = true;
|
|
nvidiaSettings = true;
|
|
package = config.boot.kernelPackages.nvidiaPackages.beta;
|
|
};
|
|
};
|
|
}
|