diff options
author | aszlig <aszlig@redmoonstudios.org> | 2015-01-26 16:15:22 +0100 |
---|---|---|
committer | aszlig <aszlig@redmoonstudios.org> | 2015-01-27 13:33:21 +0100 |
commit | 51ef031d78c7c04db9e105d7909973547f6ecdcf (patch) | |
tree | fe61c084a048a452c6164634349ec07ec3b99155 /machines/tishtushi.nix | |
parent | 76229f64959c3b1caafba2b405b34a368961b841 (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/tishtushi.nix')
-rw-r--r-- | machines/tishtushi.nix | 4 |
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" ]; |