summaryrefslogtreecommitdiff
path: root/machines
diff options
context:
space:
mode:
authorKjetil Orbekk <kj@orbekk.com>2023-09-23 14:38:31 -0400
committerKjetil Orbekk <kj@orbekk.com>2023-09-23 14:38:31 -0400
commitcfce6f5362bf25879488199214280bdb4950987d (patch)
tree2b0fcb1511ad4ba877845ea13a876868bb45837b /machines
parent48440d0fc61c3c10677d3b7deccd1160ceeb98ab (diff)
Update power management for dragon
Diffstat (limited to 'machines')
-rw-r--r--machines/dragon.nix7
1 files changed, 6 insertions, 1 deletions
diff --git a/machines/dragon.nix b/machines/dragon.nix
index ba597cf..99e1b50 100644
--- a/machines/dragon.nix
+++ b/machines/dragon.nix
@@ -21,6 +21,12 @@ in {
orbekk.zomboid-server.enable = false;
services.tlp.enable = true;
+ services.tlp.settings = {
+ # Operation mode when no power supply can be detected: AC, BAT.
+ TLP_DEFAULT_MODE="BAT";
+ # Operation mode select: 0=depend on power source, 1=always use TLP_DEFAULT_MODE
+ TLP_PERSISTENT_DEFAULT=1;
+ };
environment.systemPackages = with pkgs; [ ipmitool ];
programs.mosh.enable = true;
@@ -149,6 +155,5 @@ in {
nix.settings.trusted-users = [ "builder" ];
nix.settings.max-jobs = lib.mkDefault 8;
- powerManagement.cpuFreqGovernor = "ondemand";
hardware.enableRedistributableFirmware = lib.mkDefault true;
}