From 66d119a79b8de03d6e820875ed9b880d039917bd Mon Sep 17 00:00:00 2001 From: Erwin Boskma Date: Mon, 17 Oct 2022 22:21:04 +0200 Subject: [PATCH] Add powertop thingy, pstate kernel module --- machines/loki/configuration.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/machines/loki/configuration.nix b/machines/loki/configuration.nix index ed03128..f4c6a26 100644 --- a/machines/loki/configuration.nix +++ b/machines/loki/configuration.nix @@ -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 = ''