From f37121dce47d8fdd79c84f830ed028fa27c2ec7a Mon Sep 17 00:00:00 2001 From: Ahurac Date: Mon, 21 Oct 2024 09:12:36 +0200 Subject: [PATCH] fix(tlp): make it work lol --- ahrc-laptop/configuration.nix | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/ahrc-laptop/configuration.nix b/ahrc-laptop/configuration.nix index ffc7500..0948318 100644 --- a/ahrc-laptop/configuration.nix +++ b/ahrc-laptop/configuration.nix @@ -11,6 +11,23 @@ services.libinput.enable = true; + nixpkgs.overlays = [ + (final: prev: { + tlp = prev.tlp.overrideAttrs (old: { + makeFlags = (old.makeFlags or [ ]) ++ [ + "TLP_ULIB=/lib/udev" + "TLP_NMDSP=/lib/NetworkManager/dispatcher.d" + "TLP_SYSD=/lib/systemd/system" + "TLP_SDSL=/lib/systemd/system-sleep" + "TLP_ELOD=/lib/elogind/system-sleep" + "TLP_CONFDPR=/share/tlp/deprecated.conf" + "TLP_FISHCPL=/share/fish/vendor_completions.d" + "TLP_ZSHCPL=/share/zsh/site-functions" + ]; + }); + }) + ]; + services.tlp = { enable = true; settings = {