From 7a5e17e8d8d0376527edaf7d8ca7c5d8fb310793 Mon Sep 17 00:00:00 2001 From: Michael Mandl Date: Mon, 15 Jan 2024 08:11:48 +0100 Subject: [PATCH] feat: move tlp config to laptop configs --- configuration.nix | 2 -- machines/apache/hardware-configuration.nix | 2 ++ machines/xps/hardware-configuration.nix | 2 ++ machines/yoga/hardware-configuration.nix | 2 ++ 4 files changed, 6 insertions(+), 2 deletions(-) diff --git a/configuration.nix b/configuration.nix index ef49462..974ec05 100644 --- a/configuration.nix +++ b/configuration.nix @@ -26,8 +26,6 @@ powertop.enable = true; }; - services.tlp.enable = true; - services.acpid = { enable = true; logEvents = true; diff --git a/machines/apache/hardware-configuration.nix b/machines/apache/hardware-configuration.nix index 300113e..bc1d014 100644 --- a/machines/apache/hardware-configuration.nix +++ b/machines/apache/hardware-configuration.nix @@ -37,4 +37,6 @@ networking.useDHCP = lib.mkDefault true; hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; + + services.tlp.enable = true; } diff --git a/machines/xps/hardware-configuration.nix b/machines/xps/hardware-configuration.nix index bd4ae76..39171d9 100644 --- a/machines/xps/hardware-configuration.nix +++ b/machines/xps/hardware-configuration.nix @@ -63,4 +63,6 @@ # networking.interfaces.wlp0s20f3.useDHCP = lib.mkDefault true; hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; + + services.tlp.enable = true; } diff --git a/machines/yoga/hardware-configuration.nix b/machines/yoga/hardware-configuration.nix index be4c371..d0970ed 100644 --- a/machines/yoga/hardware-configuration.nix +++ b/machines/yoga/hardware-configuration.nix @@ -49,4 +49,6 @@ hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; hardware.sensor.iio.enable = true; + + services.tlp.enable = true; }