feat: Add smart, remove useless ZED mailer

This commit is contained in:
Kyle Brown 2023-12-12 17:15:06 -08:00
parent 19f9c2215a
commit 2e72eac712
3 changed files with 10 additions and 16 deletions

View file

@ -10,6 +10,7 @@
./packages.nix
./users.nix
./locale.nix
./smart.nix
../../common/style/stylix.nix
];
#

9
common/nixos/smart.nix Normal file
View file

@ -0,0 +1,9 @@
{ config, lib, pkgs, ... }:
{
services.smartd = {
enable = true;
notifications.wall.enable = true;
};
}

View file

@ -11,11 +11,6 @@
boot.kernelPackages = config.boot.zfs.package.latestCompatibleLinuxPackages;
# Enable mail server for zed
nixpkgs.config.packageOverrides = pkgs: {
zfsStable = pkgs.zfsStable.override {enableMail = true;};
};
services.zfs = {
trim = {
enable = true;
@ -25,17 +20,6 @@
enable = true;
interval = "monthly";
};
zed = {
enableMail = true;
settings = {
ZED_EMAIL_ADDR = ["zfs@kdb424.xyz"];
ZED_EMAIL_OPTS = "-s '@SUBJECT@' @ADDRESS@";
ZED_NOTIFY_INTERVAL_SECS = 3600;
ZED_NOTIFY_VERBOSE = false;
ZED_SCRUB_AFTER_RESILVER = true;
};
};
};
services.nfs.server.enable = true;
}