Files
dotfiles/config/modules/power-management/lavd.nix
T
2026-04-11 19:07:55 +01:00

26 lines
702 B
Nix

{ modules, den, ... }:
{
modules.lavd = {
nixos =
{ pkgs, ... }:
{
nixpkgs.config.allowUnsupportedSystem = true;
services.scx = {
enable = true;
package = pkgs.scx.rustscheds;
## Commented out because the service impl is bugged and doesnt actually set these
# scheduler = "scx_lavd";
# extraArgs = [
# "--cpu-pref-order 20-21,12-19,0-11"
# "--autopilot"
# ];
};
# Most energy efficent scheduler setup..
systemd.services.scx.environment = {
SCX_SCHEDULER_OVERRIDE = "scx_lavd";
SCX_FLAGS_OVERRIDE = "--powersave";
};
};
};
}