8 lines
287 B
Nix
8 lines
287 B
Nix
{ config, lib, ... }:
|
|
{
|
|
systemd.tmpfiles.rules = [
|
|
"w /sys/devices/system/cpu/cpu*/cpufreq/energy_performance_preference - - - - ${config.my.amd.performancePreference}"
|
|
]
|
|
++ lib.optionals config.my.amd.boost.disable
|
|
[ "w /sys/devices/system/cpu/cpufreq/boost - - - - 0" ];
|
|
} |