diff --git a/modules/core/amd-boost.nix b/modules/core/amd-boost.nix index 483cca3..400779e 100644 --- a/modules/core/amd-boost.nix +++ b/modules/core/amd-boost.nix @@ -1,6 +1,6 @@ { config, lib, ... }: { - config = lib.mkIf config.my.disableAmdBoost { - boot.kernelParaks = [ "amd_pstate=disable" ]; - }; + systemd.tmpfiles.rules = [ + lib.optionalString config.my.disableAmdBoost "w /sys/devices/system/cpu/cpufreq/boost - - - - 0" + ]; } \ No newline at end of file