diff options
-rw-r--r-- | accounts/gkleen@sif/default.nix | 1 | ||||
-rw-r--r-- | hosts/vidhar/default.nix | 12 |
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; |