feat: use tlp instead of powertop

This commit is contained in:
oddlama 2023-02-11 15:16:57 +01:00
parent f7b0d11a97
commit ef3feef6db
No known key found for this signature in database
GPG key ID: 14EFE510775FE39A
3 changed files with 16 additions and 26 deletions

View file

@ -1,17 +1,19 @@
{pkgs, ...}: {
environment.systemPackages = with pkgs; [powertop];
services.physlock.enable = true;
services.logind = {
lidSwitch = "ignore";
lidSwitchDocked = "ignore";
lidSwitchExternalPower = "ignore";
extraConfig = ''
HandlePowerKey=suspend
HandleSuspendKey=suspend
HandleHibernateKey=suspend
PowerKeyIgnoreInhibited=yes
SuspendKeyIgnoreInhibited=yes
HibernateKeyIgnoreInhibited=yes
'';
services = {
tlp.enable = true;
physlock.enable = true;
logind = {
lidSwitch = "ignore";
lidSwitchDocked = "ignore";
lidSwitchExternalPower = "ignore";
extraConfig = ''
HandlePowerKey=suspend
HandleSuspendKey=suspend
HandleHibernateKey=suspend
PowerKeyIgnoreInhibited=yes
SuspendKeyIgnoreInhibited=yes
HibernateKeyIgnoreInhibited=yes
'';
};
};
}