Smartd
services.smartd.autodetect
Whenever smartd should monitor all devices connected to the machine at the time it's being started (the default).
Set to false to monitor the devices listed in
{option}services.smartd.devices
only.
Type: boolean
Default
true
Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/monitoring/smartd.nix
services.smartd.defaults.autodetected
Like {option}services.smartd.defaults.monitored
, but for the
autodetected devices.
Type: strings concatenated with " "
Default
config.services.smartd.defaults.monitored
Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/monitoring/smartd.nix
services.smartd.defaults.monitored
Common default options for explicitly monitored (listed in
{option}services.smartd.devices
) devices.
The default value turns on monitoring of all the things (see
man 5 smartd.conf
).
The example also turns on SMART Automatic Offline Testing on startup, and schedules short self-tests daily, and long self-tests weekly.
Type: strings concatenated with " "
Default
"-a"
Example
"-a -o on -s (S/../.././02|L/../../7/04)"
Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/monitoring/smartd.nix
services.smartd.devices
List of devices to monitor.
Type: list of (submodule)
Default
[ ]
Example
[{device = "/dev/sda";}{device = "/dev/sdb";options = "-d sat";}]
Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/monitoring/smartd.nix
services.smartd.devices.*.device
Location of the device.
Type: string
Example
"/dev/sda"
Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/monitoring/smartd.nix
services.smartd.devices.*.options
Options that determine how smartd monitors the device.
Type: strings concatenated with " "
Default
""
Example
"-d sat"
Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/monitoring/smartd.nix
services.smartd.enable
Whether to enable smartd daemon from smartmontools
package.
Type: boolean
Default
false
Example
true
Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/monitoring/smartd.nix
services.smartd.extraOptions
Extra command-line options passed to the smartd
daemon on startup.
(See man 8 smartd
.)
Type: list of string
Default
[ ]
Example
["-A /var/log/smartd/""--interval=3600"]
Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/monitoring/smartd.nix
services.smartd.notifications.mail.enable
Whenever to send e-mail notifications.
Type: boolean
Default
config.services.mail.sendmailSetuidWrapper != null
Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/monitoring/smartd.nix
services.smartd.notifications.mail.mailer
Sendmail-compatible binary to be used to send the messages.
You should probably enable
{option}services.postfix
or some other MTA for
this to work.
Type: path
Default
"/run/wrappers/bin/sendmail"
Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/monitoring/smartd.nix
services.smartd.notifications.mail.recipient
Recipient of the notification messages.
Type: string
Default
"root"
Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/monitoring/smartd.nix
services.smartd.notifications.mail.sender
Sender of the notification messages.
Acts as the value of email
in the emails' From: ...
field.
Type: string
Default
"root"
Example
"example@domain.tld"
Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/monitoring/smartd.nix
services.smartd.notifications.systembus-notify.enable
Whenever to send systembus-notify notifications.
WARNING: enabling this option (while convenient) should not be done on a machine where you do not trust the other users as it allows any other local user to DoS your session by spamming notifications.
To actually see the notifications in your GUI session, you need to have
systembus-notify
running as your user, which this
option handles by enabling {option}services.systembus-notify
.
Type: boolean
Default
false
Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/monitoring/smartd.nix
services.smartd.notifications.test
Whenever to send a test notification on startup.
Type: boolean
Default
false
Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/monitoring/smartd.nix
services.smartd.notifications.wall.enable
Whenever to send wall notifications to all users.
Type: boolean
Default
true
Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/monitoring/smartd.nix
services.smartd.notifications.x11.display
DISPLAY to send X11 notifications to.
Type: string
Default
":${toString config.services.xserver.display}"
Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/monitoring/smartd.nix
services.smartd.notifications.x11.enable
Whenever to send X11 xmessage notifications.
Type: boolean
Default
config.services.xserver.enable
Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/monitoring/smartd.nix