diff --git a/config/hosts/aspects/doloro-laptop/home.nix b/config/hosts/aspects/doloro-laptop/home.nix index 4454286..a4b95e8 100644 --- a/config/hosts/aspects/doloro-laptop/home.nix +++ b/config/hosts/aspects/doloro-laptop/home.nix @@ -20,7 +20,7 @@ modules.kitty modules.stylix modules.quickshell - # modules.lavd + modules.lavd # modules.podman # modules.openvivo ]; diff --git a/config/hosts/aspects/doloro-laptop/host.nix b/config/hosts/aspects/doloro-laptop/host.nix index 9a88ff6..af68a3f 100644 --- a/config/hosts/aspects/doloro-laptop/host.nix +++ b/config/hosts/aspects/doloro-laptop/host.nix @@ -174,7 +174,7 @@ # "i915.modeset=1" # "ahci.mobile_lpm_policy=1" # "intel_idle.max_cstate=10" - # "processor.max_cstate=10" + "processor.max_cstate=10" # "quiet" # "splash" # "idle=halt" diff --git a/config/modules/power-management/lavd.nix b/config/modules/power-management/lavd.nix index bb9ec4f..063a905 100644 --- a/config/modules/power-management/lavd.nix +++ b/config/modules/power-management/lavd.nix @@ -1,21 +1,25 @@ { modules, den, ... }: { modules.lavd = { - 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" - # ]; + 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"; + }; }; - # Most energy efficent scheduler setup.. - systemd.services.scx.environment = { - SCX_SCHEDULER_OVERRIDE = "scx_lavd"; - SCX_FLAGS_OVERRIDE = "--powersave --per-cpu-dsq"; - }; - }; }; }