From 8f13eaf44d539f92aeaab4216fb40e0057e822c1 Mon Sep 17 00:00:00 2001 From: Tao Tien <29749622+taotien@users.noreply.github.com> Date: Mon, 31 Jul 2023 17:02:31 -0700 Subject: [PATCH] gpu oc --- systems/NOcomputer.nix | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/systems/NOcomputer.nix b/systems/NOcomputer.nix index cef4c1e..34ec431 100644 --- a/systems/NOcomputer.nix +++ b/systems/NOcomputer.nix @@ -1,4 +1,4 @@ -{ pkgs, ... }: +{ lib, pkgs, ... }: { environment.systemPackages = with pkgs; [ @@ -76,6 +76,15 @@ # package = config.boot.kernelPackages.nvidiaPackages.beta; 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"; }