Only spin down spinning rust

This commit is contained in:
coolneng 2023-06-23 01:13:43 +02:00
parent 349f57e474
commit 55fe10af93
Signed by: coolneng
GPG Key ID: 9893DA236405AF57
1 changed files with 4 additions and 1 deletions

View File

@ -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" ];