smartmontools

From NixOS Wiki
Revision as of 04:07, 1 August 2024 by Unabomberlive (talk | contribs) (Marked this version for translation)

smartmontools is a package which provides tools for monitoring drives which support the S.M.A.R.T. system for monitoring hard drive health. It includes the smartd and smartctl programs. smartd can be enabled on NixOS systems with the services.smartd module.

Example

 
/etc/nixos/configuration.nix
{
  services.smartd = {
    enable = true;
    devices = [
      {
        <translate>
        device = "/dev/sda"; # FIXME: Change this to your actual disk; use lsblk to find the appropriate value
</translate>
      }
    ];
  };
}