We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4a0b137 commit 21a651dCopy full SHA for 21a651d
modules/nixos/zfs/default.nix
@@ -1,4 +1,9 @@
1
-{ pkgs, lib, ... }:
+{
2
+ config,
3
+ pkgs,
4
+ lib,
5
+ ...
6
+}:
7
8
# Set `networking.hostId` to:
9
# $ head -c 8 /etc/machine-id
@@ -44,5 +49,18 @@ in
44
49
followDelete = mkDefault true;
45
50
};
46
51
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
+
47
65
environment.systemPackages = with pkgs; [ lz4 ];
48
66
}
0 commit comments