From f4fb1e159c422fbc966bf6631b907036304699d0 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Sun, 18 Aug 2024 23:53:17 +0200 Subject: ... --- accounts/gkleen@sif/default.nix | 1 + hosts/vidhar/default.nix | 12 ++++++++++++ 2 files changed, 13 insertions(+) diff --git a/accounts/gkleen@sif/default.nix b/accounts/gkleen@sif/default.nix index e224289b..214b18a1 100644 --- a/accounts/gkleen@sif/default.nix +++ b/accounts/gkleen@sif/default.nix @@ -236,6 +236,7 @@ in { size = 10; }; settings = { + scrollback_pager_history_size = 50; # background_opacity = "0.9"; enable_audio_bell = false; update_check_interval = 0; diff --git a/hosts/vidhar/default.nix b/hosts/vidhar/default.nix index 440829bb..78f305f8 100644 --- a/hosts/vidhar/default.nix +++ b/hosts/vidhar/default.nix @@ -132,6 +132,18 @@ with lib; CPUQuota = "2000%"; }; }; + systemd.services."limit-pstate" = { + wantedBy = ["basic.target"]; + serviceConfig = { + ExecStart = pkgs.writeShellScript "limit-pstate-start" '' + echo 80 > /sys/devices/system/cpu/intel_pstate/max_perf_pct + ''; + RemainAfterExit = true; + ExecStop = pkgs.writeShellScript "limit-pstate-stop" '' + echo 100 > /sys/devices/system/cpu/intel_pstate/max_perf_pct + ''; + }; + }; powerManagement = { enable = true; -- cgit v1.2.3