1
Fork 0

Give up and remove zed mail

This commit is contained in:
Matei Adriel 2024-02-12 17:08:36 +01:00
parent 51d5b2d5ac
commit 7649050ca6
No known key found for this signature in database
2 changed files with 0 additions and 21 deletions

View file

@ -5,7 +5,6 @@ in
# Configure ZFS # Configure ZFS
boot.supportedFilesystems = [ "zfs" ]; boot.supportedFilesystems = [ "zfs" ];
boot.zfs.extraPools = [ "zroot" ]; boot.zfs.extraPools = [ "zroot" ];
boot.zfs.package = pkgs.zfs.override { inherit (config.services.zfs.zed) enableMail; };
boot.kernelPackages = config.boot.zfs.package.latestCompatibleLinuxPackages; boot.kernelPackages = config.boot.zfs.package.latestCompatibleLinuxPackages;
boot.kernelParams = [ "nohibernate" ]; boot.kernelParams = [ "nohibernate" ];

View file

@ -1,19 +1,8 @@
{ config, ... }: { { config, ... }: {
imports = [ ./msmtp.nix ];
# {{{ Zfs config # {{{ Zfs config
services.zfs = { services.zfs = {
trim.enable = true; trim.enable = true;
autoScrub.enable = true; autoScrub.enable = true;
zed = {
enableMail = true;
settings = {
ZED_EMAIL_ADDR = [ "colimit@moonythm.dev" ];
ZED_EMAIL_PROG = "sendmail";
ZED_EMAIL_OPTS = "-a zed @ADDRESS@";
};
};
}; };
# }}} # }}}
# {{{ Sanoid config # {{{ Sanoid config
@ -47,13 +36,4 @@
# }}} # }}}
}; };
# }}} # }}}
# {{{ Zed email config
# Zed allows using email notifications for events
sops.secrets.zed_smtp_pass.sopsFile = ../secrets.yaml;
programs.msmtp.accounts.zed = {
from = "zed@orbit.moonythm.dev";
user = "zed@orbit.moonythm.dev";
passwordeval = "cat ${config.sops.secrets.zed_smtp_pass.path}";
};
# }}}
} }