Merge pull request 'Let smartd send mail notification' (!92) from add-mail-to-smartd into main
Reviewed-on: #92 Reviewed-by: Oystein Kristoffer Tveit <oysteikt@pvv.ntnu.no> Closes #92
This commit is contained in:
commit
c60597dc5a
|
@ -1,6 +1,16 @@
|
||||||
{ config, pkgs, lib, ... }:
|
{ config, pkgs, lib, ... }:
|
||||||
{
|
{
|
||||||
services.smartd.enable = lib.mkDefault true;
|
services.smartd = {
|
||||||
|
enable = lib.mkDefault true;
|
||||||
|
notifications = {
|
||||||
|
mail = {
|
||||||
|
enable = true;
|
||||||
|
sender = "root@pvv.ntnu.no";
|
||||||
|
recipient = "root@pvv.ntnu.no";
|
||||||
|
};
|
||||||
|
wall.enable = false;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
environment.systemPackages = lib.optionals config.services.smartd.enable (with pkgs; [
|
environment.systemPackages = lib.optionals config.services.smartd.enable (with pkgs; [
|
||||||
smartmontools
|
smartmontools
|
||||||
|
|
Loading…
Reference in New Issue