mirror of
https://github.com/oddlama/nix-config.git
synced 2025-10-10 23:00:39 +02:00
26 lines
473 B
Nix
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;
|
|
};
|
|
};
|
|
}
|