From 0bea74cd23dfaac36f7f8f34ff2a256bb650816d Mon Sep 17 00:00:00 2001 From: Yusuf Bera Ertan Date: Mon, 12 Sep 2022 02:33:56 +0300 Subject: [PATCH] set up tlp --- hosts/tkaronto/modules/tlp.nix | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 hosts/tkaronto/modules/tlp.nix diff --git a/hosts/tkaronto/modules/tlp.nix b/hosts/tkaronto/modules/tlp.nix new file mode 100644 index 0000000..6f2e95c --- /dev/null +++ b/hosts/tkaronto/modules/tlp.nix @@ -0,0 +1,12 @@ +{ + services.tlp = { + enable = true; + settings = { + RADEON_DPM_PERF_LEVEL_ON_AC = "auto"; + RADEON_DPM_PERF_LEVEL_ON_BAT = "low"; + RADEON_DPM_STATE_ON_AC = "performance"; + RADEON_DPM_STATE_ON_BAT = "battery"; + NMI_WATCHDOG = 0; + }; + }; +}