diff --git a/nix/configuration/hosts/odo/power_management.nix b/nix/configuration/hosts/odo/power_management.nix index a3aa299..0973577 100644 --- a/nix/configuration/hosts/odo/power_management.nix +++ b/nix/configuration/hosts/odo/power_management.nix @@ -24,6 +24,9 @@ "pcie_aspm=force" "pcie_aspm.policy=powersupersave" "nowatchdog" + # I don't see a measurable benefit from these two: + # "cpufreq.default_governor=powersave" + # "initcall_blacklist=cpufreq_gov_userspace_init" ]; systemd.tmpfiles.rules = [ diff --git a/nix/configuration/roles/python/default.nix b/nix/configuration/roles/python/default.nix index aaabbc1..d569e65 100644 --- a/nix/configuration/roles/python/default.nix +++ b/nix/configuration/roles/python/default.nix @@ -9,7 +9,12 @@ imports = [ ]; environment.systemPackages = with pkgs; [ - python3 + (python3.withPackages (python-pkgs: [ + python-pkgs.distro # For https://gitlab.freedesktop.org/drm/amd/-/blob/master/scripts/amd_s2idle.py + python-pkgs.pyudev # For https://gitlab.freedesktop.org/drm/amd/-/blob/master/scripts/amd_s2idle.py + python-pkgs.systemd # For https://gitlab.freedesktop.org/drm/amd/-/blob/master/scripts/amd_s2idle.py + python-pkgs.packaging # For https://gitlab.freedesktop.org/drm/amd/-/blob/master/scripts/amd_s2idle.py + ])) poetry pyright isort