about summary refs log tree commit diff
path: root/machines
diff options
context:
space:
mode:
authoraszlig <aszlig@redmoonstudios.org>2015-01-26 16:15:22 +0100
committeraszlig <aszlig@redmoonstudios.org>2015-01-27 13:33:21 +0100
commit51ef031d78c7c04db9e105d7909973547f6ecdcf (patch)
treefe61c084a048a452c6164634349ec07ec3b99155 /machines
parent76229f64959c3b1caafba2b405b34a368961b841 (diff)
tishtushi: Use TLP service instead of hdparm.
Thanks to @abbradar for packaging the TLP nixpkg and NixOS service
module. The upside is that the APM level of the disk is 254 by default,
so we don't need to explicitly set that during bootup and it is done
automatically when we're on AC (when the battery is the power source
it's 128).

Signed-off-by: aszlig <aszlig@redmoonstudios.org>
Diffstat (limited to 'machines')
-rw-r--r--machines/tishtushi.nix4
1 files changed, 1 insertions, 3 deletions
diff --git a/machines/tishtushi.nix b/machines/tishtushi.nix
index 45f92389..d4e2a0c9 100644
--- a/machines/tishtushi.nix
+++ b/machines/tishtushi.nix
@@ -55,9 +55,7 @@ in {
     device = "/dev/disk/by-uuid/${swapUUID}";
   };
 
-  powerManagement.powerUpCommands = ''
-    ${pkgs.hdparm}/sbin/hdparm -B 254 "/dev/disk/by-id/${diskID}"
-  '';
+  services.tlp.enable = true;
 
   services.xserver.videoDrivers = [ "intel" ];