From cfce6f5362bf25879488199214280bdb4950987d Mon Sep 17 00:00:00 2001 From: Kjetil Orbekk Date: Sat, 23 Sep 2023 14:38:31 -0400 Subject: Update power management for dragon --- machines/dragon.nix | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'machines/dragon.nix') 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; } -- cgit v1.2.3