From 55fe10af93f74bb6ea97f369fe915cbe1a0a4865 Mon Sep 17 00:00:00 2001 From: coolneng Date: Fri, 23 Jun 2023 01:13:43 +0200 Subject: [PATCH] Only spin down spinning rust --- modules/periodic.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/modules/periodic.nix b/modules/periodic.nix index 42f7ed1..d11aa80 100644 --- a/modules/periodic.nix +++ b/modules/periodic.nix @@ -53,7 +53,10 @@ in { description = "Idle HDDs when not in use"; wantedBy = [ "default.target" ]; path = with pkgs; [ hd-idle ]; - script = "${pkgs.hd-idle}/bin/hd-idle"; + script = '' + ${pkgs.hd-idle}/bin/hd-idle -i 0 -a ata-ST1000LM035-1RK172_WKPAKV85 -i 600 + -a ata-HGST_HTS721010A9E630_JR100X6P3UJG5E -i 600 + ''; serviceConfig.Type = "simple"; requires = [ "sata-hat.service" ]; after = [ "vault.mount" ];