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"; }