Revert "Remove tlp"

This reverts commit dc0382aa9f.
This commit is contained in:
Andreas Zweili 2023-05-10 18:30:06 +02:00
parent 5d32d1baf0
commit 85750abf2b
2 changed files with 11 additions and 0 deletions

10
modules/tlp/default.nix Normal file
View File

@ -0,0 +1,10 @@
{ ... }:
{
services.tlp = {
enable = true;
settings = {
DEVICES_TO_DISABLE_ON_STARTUP = "bluetooth wifi wwan";
DEVICES_TO_DISABLE_ON_BAT_NOT_IN_USE = "bluetooth wifi wwan";
};
};
}

View File

@ -9,6 +9,7 @@
(import "${custom.inputs.self}/modules/docker" { inherit custom; })
"${custom.inputs.self}/modules/lockscreen"
(import "${custom.inputs.self}/modules/restic-client-desktop" { inherit custom; })
"${custom.inputs.self}/modules/tlp"
"${custom.inputs.self}/modules/tmux"
];
boot.initrd.availableKernelModules = [