From 51ef031d78c7c04db9e105d7909973547f6ecdcf Mon Sep 17 00:00:00 2001 From: aszlig Date: Mon, 26 Jan 2015 16:15:22 +0100 Subject: 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 --- machines/tishtushi.nix | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'machines') 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" ]; -- cgit 1.4.1