summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2024-08-18 23:53:17 +0200
committerGregor Kleen <gkleen@yggdrasil.li>2024-08-18 23:53:17 +0200
commitf4fb1e159c422fbc966bf6631b907036304699d0 (patch)
tree436ef7c3a22e3f441c7fa5d6a343098f083c6cc9
parentdec3e215aeedcb91e3ad03def5e45a6a8e572a1e (diff)
downloadnixos-f4fb1e159c422fbc966bf6631b907036304699d0.tar
nixos-f4fb1e159c422fbc966bf6631b907036304699d0.tar.gz
nixos-f4fb1e159c422fbc966bf6631b907036304699d0.tar.bz2
nixos-f4fb1e159c422fbc966bf6631b907036304699d0.tar.xz
nixos-f4fb1e159c422fbc966bf6631b907036304699d0.zip
...
-rw-r--r--accounts/gkleen@sif/default.nix1
-rw-r--r--hosts/vidhar/default.nix12
2 files changed, 13 insertions, 0 deletions
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 {
236 size = 10; 236 size = 10;
237 }; 237 };
238 settings = { 238 settings = {
239 scrollback_pager_history_size = 50;
239 # background_opacity = "0.9"; 240 # background_opacity = "0.9";
240 enable_audio_bell = false; 241 enable_audio_bell = false;
241 update_check_interval = 0; 242 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;
132 CPUQuota = "2000%"; 132 CPUQuota = "2000%";
133 }; 133 };
134 }; 134 };
135 systemd.services."limit-pstate" = {
136 wantedBy = ["basic.target"];
137 serviceConfig = {
138 ExecStart = pkgs.writeShellScript "limit-pstate-start" ''
139 echo 80 > /sys/devices/system/cpu/intel_pstate/max_perf_pct
140 '';
141 RemainAfterExit = true;
142 ExecStop = pkgs.writeShellScript "limit-pstate-stop" ''
143 echo 100 > /sys/devices/system/cpu/intel_pstate/max_perf_pct
144 '';
145 };
146 };
135 147
136 powerManagement = { 148 powerManagement = {
137 enable = true; 149 enable = true;