modified: configuration.nix
This commit is contained in:
parent
08f2a072ba
commit
0c1f1d8490
1 changed files with 0 additions and 9 deletions
|
|
@ -90,20 +90,11 @@ in
|
||||||
experimental-features = nix-command flakes
|
experimental-features = nix-command flakes
|
||||||
'';
|
'';
|
||||||
|
|
||||||
hardware.enableAllFirmware = true;
|
|
||||||
hardware.nvidia = {
|
|
||||||
package = config.boot.kernelPackages.nvidiaPackages.stable;
|
|
||||||
modesetting.enable = true;
|
|
||||||
powerManagement.enable = true;
|
|
||||||
open = false;
|
|
||||||
nvidiaSettings = false;
|
|
||||||
};
|
|
||||||
services.udev.extraRules = if isAdata then ''
|
services.udev.extraRules = if isAdata then ''
|
||||||
ACTION=="add|change",KERNEL=="nvme[0-9]", ATTR{queue/scheduler}="none"
|
ACTION=="add|change",KERNEL=="nvme[0-9]", ATTR{queue/scheduler}="none"
|
||||||
'' else "";
|
'' else "";
|
||||||
boot.kernelParams = lib.optionals isNvidia [ "nvidia-drm.modeset=1" ]
|
boot.kernelParams = lib.optionals isNvidia [ "nvidia-drm.modeset=1" ]
|
||||||
++ lib.optionals isAdata [ "nvme_core.default_ps_max_latency_us=0" "nvme_core.io_timeout=4294967295" ];
|
++ lib.optionals isAdata [ "nvme_core.default_ps_max_latency_us=0" "nvme_core.io_timeout=4294967295" ];
|
||||||
boot.blacklistedKernelModules = if isNvidia then [ "nouveau" ] else [ ];
|
|
||||||
boot.extraModprobeConfig =
|
boot.extraModprobeConfig =
|
||||||
if isNvidia then
|
if isNvidia then
|
||||||
"options nvidia "
|
"options nvidia "
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue