1
1
Fork 1
mirror of https://github.com/oddlama/nix-config.git synced 2025-10-10 23:00:39 +02:00
oddlama_nix-config/config/hardware/nvidia.nix
2024-11-26 13:34:55 +01:00

26 lines
473 B
Nix

{
lib,
minimal,
pkgs,
...
}:
lib.optionalAttrs (!minimal) {
boot.blacklistedKernelModules = [ "nouveau" ];
services.xserver.videoDrivers = lib.mkForce [ "nvidia" ];
hardware = {
graphics = {
enable = true;
enable32Bit = true;
extraPackages = with pkgs; [
vaapiVdpau
nvidia-vaapi-driver
];
};
nvidia = {
modesetting.enable = true;
open = true;
powerManagement.enable = true;
};
};
}