{ config, lib, pkgs, ... }: { # 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"; after = [ "shield-unit.mount" ]; }; }