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 = {