diff options
author | aszlig <aszlig@redmoonstudios.org> | 2014-10-13 20:48:32 +0200 |
---|---|---|
committer | aszlig <aszlig@redmoonstudios.org> | 2014-10-13 20:48:32 +0200 |
commit | e25c9e1091abc1ea7247871faa0b7a064912017c (patch) | |
tree | 2bd9d62139b4afe0c9c2b3b6d74a9f1abdbb1482 /machines/tishtushi.nix | |
parent | 1248fd3625bdac079eaa97f55466a000e8c987e6 (diff) |
tishtushi: Set standby timer for rotational disk.
I don't like the constant clicking after a small fart of idling, especially because it will reduce the disk life as well. Signed-off-by: aszlig <aszlig@redmoonstudios.org>
Diffstat (limited to 'machines/tishtushi.nix')
-rw-r--r-- | machines/tishtushi.nix | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/machines/tishtushi.nix b/machines/tishtushi.nix index 0d1c2e5e..97a081a9 100644 --- a/machines/tishtushi.nix +++ b/machines/tishtushi.nix @@ -40,6 +40,10 @@ in { device = "/dev/disk/by-uuid/${swapUUID}"; }; + powerManagement.powerUpCommands = '' + ${pkgs.hdparm}/sbin/hdparm -B 254 "/dev/disk/by-id/${diskID}" + ''; + services.xserver.videoDrivers = [ "intel" ]; nix.maxJobs = 4; |