feat: Add smart, remove useless ZED mailer
This commit is contained in:
parent
19f9c2215a
commit
2e72eac712
3 changed files with 10 additions and 16 deletions
|
@ -10,6 +10,7 @@
|
|||
./packages.nix
|
||||
./users.nix
|
||||
./locale.nix
|
||||
./smart.nix
|
||||
../../common/style/stylix.nix
|
||||
];
|
||||
#
|
||||
|
|
9
common/nixos/smart.nix
Normal file
9
common/nixos/smart.nix
Normal file
|
@ -0,0 +1,9 @@
|
|||
{ config, lib, pkgs, ... }:
|
||||
|
||||
{
|
||||
|
||||
services.smartd = {
|
||||
enable = true;
|
||||
notifications.wall.enable = true;
|
||||
};
|
||||
}
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue