mirror of
https://github.com/Ahwxorg/nixos-config.git
synced 2025-12-04 06:50:14 +01:00
feat: make nvidia drivers work better
This commit is contained in:
parent
7cd1da0528
commit
10f6123334
1 changed files with 13 additions and 1 deletions
|
|
@ -14,9 +14,17 @@ in
|
|||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
services.xserver.videoDrivers = [ "nvidia" ];
|
||||
hardware = {
|
||||
nvidia = {
|
||||
modesetting.enable = true;
|
||||
powerManagement.enable = false;
|
||||
powerManagement.finegrained = false;
|
||||
open = false;
|
||||
nvidiaSettings = true;
|
||||
package = config.boot.kernelPackages.nvidiaPackages.stable;
|
||||
};
|
||||
enableRedistributableFirmware = true;
|
||||
nvidia.open = false; # Set to false/true for proprietary/open drivers
|
||||
graphics = {
|
||||
enable = true;
|
||||
extraPackages = with pkgs; [
|
||||
|
|
@ -31,6 +39,10 @@ in
|
|||
|
||||
environment.systemPackages = with pkgs; [
|
||||
# amdvlk
|
||||
#nvidia-x11
|
||||
#nvidia-settings
|
||||
#nvidia-persistenced
|
||||
nvtopPackages.nvidia
|
||||
];
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue