update nvidia nixos-hw
This commit is contained in:
parent
8d14b8aaa9
commit
bffc23a0cb
2 changed files with 2 additions and 6 deletions
|
|
@ -74,7 +74,8 @@
|
||||||
disko.nixosModules.disko
|
disko.nixosModules.disko
|
||||||
nixos-hardware.nixosModules.common-cpu-amd
|
nixos-hardware.nixosModules.common-cpu-amd
|
||||||
nixos-hardware.nixosModules.common-cpu-amd-pstate
|
nixos-hardware.nixosModules.common-cpu-amd-pstate
|
||||||
nixos-hardware.nixosModules.common-gpu-nvidia-nonprime
|
nixos-hardware.nixosModules.common-gpu-nvidia-nvidia
|
||||||
|
# nixos-hardware.common.gpu.nvidia.ampere
|
||||||
agenix.nixosModules.default
|
agenix.nixosModules.default
|
||||||
home-manager.nixosModules.home-manager
|
home-manager.nixosModules.home-manager
|
||||||
./systems/BASED.nix
|
./systems/BASED.nix
|
||||||
|
|
|
||||||
|
|
@ -29,16 +29,11 @@
|
||||||
|
|
||||||
hardware.nvidia = {
|
hardware.nvidia = {
|
||||||
powerManagement.enable = false;
|
powerManagement.enable = false;
|
||||||
powerManagement.finegrained = false;
|
|
||||||
# options: production, beta, vulkan_beta, latest
|
# options: production, beta, vulkan_beta, latest
|
||||||
package = config.boot.kernelPackages.nvidiaPackages.latest;
|
package = config.boot.kernelPackages.nvidiaPackages.latest;
|
||||||
open = true;
|
open = true;
|
||||||
nvidiaSettings = false;
|
nvidiaSettings = false;
|
||||||
};
|
};
|
||||||
# enable core and mem freq sliders for nvidia
|
|
||||||
services.xserver.deviceSection = ''
|
|
||||||
Option "Coolbits" "8"
|
|
||||||
'';
|
|
||||||
systemd.services.nvpl = {
|
systemd.services.nvpl = {
|
||||||
description = "Increase GPU power limit to 400w";
|
description = "Increase GPU power limit to 400w";
|
||||||
script = "/run/current-system/sw/bin/nvidia-smi -pl=400";
|
script = "/run/current-system/sw/bin/nvidia-smi -pl=400";
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue