From 0cc3f4b65e28caf850f080984b5da0d44ac20a7b Mon Sep 17 00:00:00 2001 From: Antoine Martin Date: Mon, 1 Dec 2025 17:25:42 +0100 Subject: [PATCH] hades: set mailaddr for mdadm --- hosts/hades/default.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/hosts/hades/default.nix b/hosts/hades/default.nix index 5f5355b..7d59a07 100644 --- a/hosts/hades/default.nix +++ b/hosts/hades/default.nix @@ -24,6 +24,13 @@ in { devices = ["/dev/sda" "/dev/sdb"]; }; + # TODO: I've setup the address to avoid a spurious failure of the `mdmonitor` + # systemd unit, but sending email is not actually setup on this server. Might + # need to setup Postfix or msmtp + boot.swraid.mdadmConf = ''' + MAILADDR=antoine@alarsyo.net + '''; + boot.tmp.useTmpfs = true; networking.hostName = "hades"; # Define your hostname.