mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-11-16 21:21:04 +01:00
18 lines
426 B
Nix
18 lines
426 B
Nix
{
|
|
lib,
|
|
outputs,
|
|
...
|
|
}:
|
|
let
|
|
cfg = outputs.nixosConfigurations.shoukei-niri.config;
|
|
in
|
|
{
|
|
governor = cfg.powerManagement.cpuFreqGovernor;
|
|
noTuned = lib.all (host: !host.config.services.tuned.enable) (
|
|
builtins.attrValues outputs.nixosConfigurations
|
|
);
|
|
noFrequencyCaps =
|
|
cfg.powerManagement.cpufreq.min == null && cfg.powerManagement.cpufreq.max == null;
|
|
batteryReporting = cfg.services.upower.enable;
|
|
}
|