Spin down the HDDs when not in use
This commit is contained in:
parent
000f56d295
commit
5911e6f678
|
@ -61,4 +61,15 @@ in {
|
|||
requires = [ "sata-hat.service" ];
|
||||
after = [ "vault.mount" ];
|
||||
};
|
||||
|
||||
# Idle HDDs when not used
|
||||
systemd.services.hd-idle = {
|
||||
description = "Idle HDDs when not in use";
|
||||
wantedBy = [ "default.target" ];
|
||||
path = with pkgs; [ hd-idle ];
|
||||
script = "${pkgs.hd-idle}/bin/hd-idle";
|
||||
serviceConfig.Type = "simple";
|
||||
requires = [ "sata-hat.service" ];
|
||||
after = [ "vault.mount" ];
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue