31 lines
939 B
Nix
31 lines
939 B
Nix
{ config, ... }:
|
|
{
|
|
bchmnn = {
|
|
power = {
|
|
tlp = {
|
|
settings = {
|
|
# performance | powersave
|
|
CPU_SCALING_GOVERNOR_ON_AC = "performance";
|
|
CPU_SCALING_GOVERNOR_ON_BAT = "performance";
|
|
# performance | balance_performance | default | balance_power | power
|
|
CPU_ENERGY_PERF_POLICY_ON_AC = "power";
|
|
CPU_ENERGY_PERF_POLICY_ON_BAT = "power";
|
|
# performance | balanced | low-power
|
|
PLATFORM_PROFILE_ON_AC = "low-power";
|
|
PLATFORM_PROFILE_ON_BAT = "low-power";
|
|
CPU_MIN_PERF_ON_AC = 0;
|
|
CPU_MAX_PERF_ON_AC = 100;
|
|
CPU_MIN_PERF_ON_BAT = 0;
|
|
CPU_MAX_PERF_ON_BAT = 100;
|
|
};
|
|
};
|
|
};
|
|
};
|
|
|
|
services.logind.settings.Login.HandleLidSwitch = "ignore";
|
|
|
|
boot.binfmt.emulatedSystems = [ "aarch64-linux" ];
|
|
|
|
users.groups.media = { };
|
|
systemd.tmpfiles.rules = [ "d /var/lib/media 2770 root media" ];
|
|
}
|