thinker: use tlp

This commit is contained in:
Daniel Flanagan 2024-04-04 09:24:03 -05:00
parent 038badd1a9
commit 3a3406c796

View file

@ -48,6 +48,10 @@
kernelParams = ["boot.shell_on_fail" "resume_offset=22816000"]; kernelParams = ["boot.shell_on_fail" "resume_offset=22816000"];
initrd.availableKernelModules = ["xhci_pci" "nvme" "ahci"]; initrd.availableKernelModules = ["xhci_pci" "nvme" "ahci"];
}; };
services.tlp = {
enable = true;
};
services.power-profiles-daemon.enable = false;
hardware.bluetooth.enable = true; hardware.bluetooth.enable = true;
powerManagement.cpuFreqGovernor = lib.mkDefault "powersave"; powerManagement.cpuFreqGovernor = lib.mkDefault "powersave";
services.printing.enable = true; # I own a printer in the year of our Lord 2023 services.printing.enable = true; # I own a printer in the year of our Lord 2023
@ -80,16 +84,16 @@
# findmnt -no UUID -T /swap/swapfile # findmnt -no UUID -T /swap/swapfile
boot.resumeDevice = "/dev/disk/by-uuid/aacd6814-a5a2-457a-bf65-8d970cb1f03d"; boot.resumeDevice = "/dev/disk/by-uuid/aacd6814-a5a2-457a-bf65-8d970cb1f03d";
services.logind = { # services.logind = {
lidSwitch = "suspend-then-hibernate"; # lidSwitch = "suspend-then-hibernate";
extraConfig = '' # extraConfig = ''
HandlePowerKey=suspend-then-hibernate # HandlePowerKey=suspend-then-hibernate
IdleAction=suspend-then-hibernate # IdleAction=suspend-then-hibernate
IdleActionSec=10m # IdleActionSec=10m
HandleLidSwitchDocked=ignore # HandleLidSwitchDocked=ignore
''; # '';
}; # };
systemd.sleep.extraConfig = "HibernateDelaySec=30m"; # systemd.sleep.extraConfig = "HibernateDelaySec=30m";
networking = { networking = {
firewall = { firewall = {