diff --git a/nixos/modules/tasks/filesystems/zfs.nix b/nixos/modules/tasks/filesystems/zfs.nix index 861c8ac8081e..0f91848a4bd0 100644 --- a/nixos/modules/tasks/filesystems/zfs.nix +++ b/nixos/modules/tasks/filesystems/zfs.nix @@ -696,6 +696,10 @@ in This error can be triggered by using an absolute path, such as `"/dev/disk/..."`. ''; } + { + assertion = cfgZED.enableMail -> config.services.mail.sendmailSetuidWrapper.enable; + message = "services.zfs.zed.enableMail requires services.mail.sendmailSetuidWrapper.enable to be enabled as otherwise no mail can be sent."; + } ]; boot = {