Add powertop thingy, pstate kernel module

This commit is contained in:
Erwin Boskma 2022-10-17 22:21:04 +02:00
parent a5c108f3db
commit 66d119a79b
Signed by: erwin
GPG key ID: 270B20D17394F7E5

View file

@ -5,6 +5,7 @@ in
{
imports = [
nixos-hardware.nixosModules.common-cpu-amd
nixos-hardware.nixosModules.common-cpu-amd-pstate
nixos-hardware.nixosModules.common-gpu-amd
nixos-hardware.nixosModules.common-pc-ssd
@ -158,6 +159,12 @@ in
openFirewall = true;
};
powerManagement.powerUpCommands = ''
${pkgs.powertop}/bin/powertop --auto-tune
echo 'on' > /sys/bus/usb/devices/5-4.2/power/control # Logitech G502 HERO SE
echo 'on' > /sys/bus/usb/devices/5-4.1/power/control # splitkb Kyria rev1
'';
services.nfs.server = {
enable = true;
exports = ''