From 0499cfb7c310ba3562fc7f11ec9ccaf56833ff86 Mon Sep 17 00:00:00 2001 From: Nick Van Doorn Date: Wed, 7 Jun 2023 21:45:02 +0000 Subject: Enable ZED email notifications --- configuration.nix | 9 +++++++++ 1 file changed, 9 insertions(+) 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" -- cgit v1.2.3