summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Van Doorn <nick@nvandoorn.com>2023-06-07 21:45:02 +0000
committerNick Van Doorn <nick@nvandoorn.com>2023-06-07 21:45:02 +0000
commit0499cfb7c310ba3562fc7f11ec9ccaf56833ff86 (patch)
tree085dcc4aa7bcf8b2780a42b8f41fb566c85196df
parentf8fc3e8e936730ed856c3b783f90e8848c626c55 (diff)
Enable ZED email notifications
-rw-r--r--configuration.nix9
1 files changed, 9 insertions, 0 deletions
diff --git a/configuration.nix b/configuration.nix
index 8b5db09..7f99894 100644
--- a/configuration.nix
+++ b/configuration.nix
@@ -16,6 +16,9 @@
# Use the systemd-boot EFI boot loader.
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
+ nixpkgs.config.packageOverrides = pkgs: {
+ zfsStable = pkgs.zfsStable.override { enableMail = true; };
+ };
boot.supportedFilesystems = ["zfs"];
boot.zfs.forceImportRoot = false;
boot.zfs.extraPools = ["pool"];
@@ -253,6 +256,12 @@
test = true;
};
};
+ services.zfs.zed.enableMail = true;
+ services.zfs.zed.settings = {
+ ZED_EMAIL_ADDR = [ "root" ];
+ ZED_NOTIFY_VERBOSE = true;
+ ZED_EMAIL_PROG = "${pkgs.msmtp}/bin/msmtp";
+ };
users.groups.git.members = [
"git"