From 6248f306b15da3fc38c3a7d0266592fa424205d0 Mon Sep 17 00:00:00 2001 From: Adithya Nair Date: Sat, 1 Jul 2023 14:13:44 +0530 Subject: [PATCH] replace tlp with power-profiles-daemon --- hosts/skipper/services/default.nix | 9 +++------ hosts/skipper/services/tlp.nix | 25 ------------------------- 2 files changed, 3 insertions(+), 31 deletions(-) delete mode 100644 hosts/skipper/services/tlp.nix diff --git a/hosts/skipper/services/default.nix b/hosts/skipper/services/default.nix index b60d0c6..e2a0271 100644 --- a/hosts/skipper/services/default.nix +++ b/hosts/skipper/services/default.nix @@ -1,18 +1,14 @@ -{ - pkgs, - secrets, - ... -}: let +{ ... }: let user = (import ../../../secrets.nix).users; in { imports = [ ./dbus.nix ./pipewire.nix - ./tlp.nix ./udev.nix ]; services = { blueman.enable = true; + cpupower-gui.enable = true; fstrim.enable = true; fwupd.enable = true; geoclue2.enable = true; @@ -24,6 +20,7 @@ in { ''; lvm.dmeventd.enable = true; pcscd.enable = true; + power-profiles-daemon.enable = true; resolved.enable = true; thermald.enable = true; udisks2.enable = true; diff --git a/hosts/skipper/services/tlp.nix b/hosts/skipper/services/tlp.nix deleted file mode 100644 index 816bbda..0000000 --- a/hosts/skipper/services/tlp.nix +++ /dev/null @@ -1,25 +0,0 @@ -{...}: { - services.tlp = { - enable = true; - settings = { - DISK_DEVICES = "nvme0n1"; - - WIFI_PWR_ON_AC = "off"; - WIFI_PWR_ON_BAT = "off"; - - CPU_SCALING_GOVERNOR_ON_AC = "performance"; - CPU_SCALING_GOVERNOR_ON_BAT = "powersave"; - - CPU_ENERGY_PERF_POLICY_ON_AC = "performance"; - CPU_ENERGY_PERF_POLICY_ON_BAT = "power"; - - CPU_MIN_PERF_ON_AC = 0; - CPU_MAX_PERF_ON_AC = 100; - CPU_MIN_PERF_ON_BAT = 0; - CPU_MAX_PERF_ON_BAT = 30; - - CPU_BOOST_ON_AC = 1; - CPU_BOOST_ON_BAT = 0; - }; - }; -}