mirror of
https://github.com/Stunkymonkey/nixos.git
synced 2025-05-24 09:54:40 +02:00
machine/thinkman: disable postfix by removing mail from drive-monitor
This commit is contained in:
parent
1b08d9bf1a
commit
2ca9cdd4da
2 changed files with 1 additions and 2 deletions
|
@ -14,7 +14,6 @@ in
|
||||||
debug.enable = true;
|
debug.enable = true;
|
||||||
drive-monitor = {
|
drive-monitor = {
|
||||||
enable = true;
|
enable = true;
|
||||||
OnFailureMail = "server@buehler.rocks";
|
|
||||||
};
|
};
|
||||||
firmware = {
|
firmware = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
|
@ -16,7 +16,7 @@ in
|
||||||
|
|
||||||
config = lib.mkIf cfg.enable {
|
config = lib.mkIf cfg.enable {
|
||||||
services = {
|
services = {
|
||||||
postfix.enable = lib.mkIf (cfg.OnFailureMail != null) true;
|
postfix.enable = cfg.OnFailureMail != null;
|
||||||
smartd = {
|
smartd = {
|
||||||
enable = true;
|
enable = true;
|
||||||
notifications.mail = lib.mkIf (cfg.OnFailureMail != null) {
|
notifications.mail = lib.mkIf (cfg.OnFailureMail != null) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue