Power Leaf

cells/core/power.nix adds laptop-oriented power and performance defaults to the base branch.

Up: core leaves

Down: base branch

What this leaf does

It enables TLP, sets battery and AC power policy, enables zram, and adjusts selected kernel sysctls.

services.tlp = {
  enable = true;
  settings = {
    CPU_SCALING_GOVERNOR_ON_BAT = "powersave";
    STOP_CHARGE_THRESH_BAT0 = 80;
  };
};
 
zramSwap.enable = true;

Why it belongs to base

For a laptop-focused setup, power behavior is foundational. If this flake grows more non-laptop hosts, this leaf could move into a laptop-specific branch or be gated by a profile option.