Skip to content

Commit 21a651d

Browse files
committed
feature/zfs: zed config
1 parent 4a0b137 commit 21a651d

File tree

1 file changed

+19
-1
lines changed

1 file changed

+19
-1
lines changed

modules/nixos/zfs/default.nix

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
1-
{ pkgs, lib, ... }:
1+
{
2+
config,
3+
pkgs,
4+
lib,
5+
...
6+
}:
27

38
# Set `networking.hostId` to:
49
# $ head -c 8 /etc/machine-id
@@ -44,5 +49,18 @@ in
4449
followDelete = mkDefault true;
4550
};
4651

52+
services.zfs.zed = {
53+
enableMail = config.mailserver.enable;
54+
settings = {
55+
ZED_EMAIL_ADDR = mkDefault "postmaster@${config.networking.domain}";
56+
ZED_EMAIL_PROG = mkDefault "sendmail";
57+
ZED_EMAIL_OPTS = mkDefault "-t -f root@localhost";
58+
ZED_NOTIFY_VERBOSE = mkDefault "1";
59+
ZED_NOTIFY_DATA = mkDefault "1";
60+
ZED_NOTIFY_ERROR = mkDefault "1";
61+
ZED_NOTIFY_WARNING = mkDefault "1";
62+
};
63+
};
64+
4765
environment.systemPackages = with pkgs; [ lz4 ];
4866
}

0 commit comments

Comments
 (0)