Add kernel settings and tweak TLP to improve battery life
This commit is contained in:
parent
108f68cd96
commit
f6af733634
1 changed files with 15 additions and 3 deletions
|
|
@ -1,11 +1,15 @@
|
|||
{ apple-silicon-support, pkgs, ... }:
|
||||
{ apple-silicon-support, ... }:
|
||||
{
|
||||
imports = [
|
||||
apple-silicon-support.nixosModules.apple-silicon-support
|
||||
];
|
||||
|
||||
boot = {
|
||||
kernelParams = [ "apple_dcp.show_notch=0" ];
|
||||
kernelParams = [
|
||||
"apple_dcp.show_notch=0"
|
||||
"cpuidle.off=0"
|
||||
"mem_sleep_default=deep"
|
||||
];
|
||||
loader.efi.canTouchEfiVariables = false;
|
||||
};
|
||||
|
||||
|
|
@ -19,6 +23,14 @@
|
|||
networking.hostName = "asahi-nixos";
|
||||
|
||||
services = {
|
||||
tlp.enable = true;
|
||||
tlp = {
|
||||
enable = true;
|
||||
settings = {
|
||||
SOUND_POWER_SAVE_ON_BAT = 1;
|
||||
RUNTIME_PM_ON_BAT = "auto";
|
||||
WIFI_PWR_ON_BAT = "on";
|
||||
WOL_DISABLE = "Y";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue