added new scx
This commit is contained in:
22
config/modules/power-management/flash.nix
Normal file
22
config/modules/power-management/flash.nix
Normal file
@@ -0,0 +1,22 @@
|
||||
{ modules, den, ... }:
|
||||
{
|
||||
modules.flash = {
|
||||
nixos = {
|
||||
services.scx = {
|
||||
enable = true;
|
||||
## 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_flash";
|
||||
# Flags are from cachyos sched-ext tutorial
|
||||
SCX_FLAGS_OVERRIDE = "-m powersave -I 10000 -t 1000 -s 10000 -S 1000";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user