This commit is contained in:
Tao Tien 2023-07-31 17:02:31 -07:00
parent 76b73e235f
commit 8f13eaf44d

View file

@ -1,4 +1,4 @@
{ pkgs, ... }: { lib, pkgs, ... }:
{ {
environment.systemPackages = with pkgs; environment.systemPackages = with pkgs;
[ [
@ -76,6 +76,15 @@
# package = config.boot.kernelPackages.nvidiaPackages.beta; # package = config.boot.kernelPackages.nvidiaPackages.beta;
package = pkgs.unstable.linuxPackages_latest.nvidiaPackages.production; package = pkgs.unstable.linuxPackages_latest.nvidiaPackages.production;
}; };
# enable core and mem freq sliders for nvidia
services.xserver.deviceSection = ''
Option "Coolbits" "8"
'';
systemd.services.nvpl = {
description = "Increase GPU power limit to 400w";
script = "/run/current-system/sw/bin/nvidia-smi -pl=400";
wantedBy = [ "multi-user.target" ];
};
networking.hostName = "NOcomputer"; networking.hostName = "NOcomputer";
} }