remove dunst requirements when disabled

This commit is contained in:
Noah Masur
2023-04-16 19:05:09 -04:00
parent f67a44fa87
commit 05f705d794
2 changed files with 4 additions and 3 deletions

View File

@ -59,7 +59,8 @@
enable = true;
boxes = [ "Inbox" ];
onNotify = "${pkgs.isync}/bin/mbsync -a";
onNotifyPost =
onNotifyPost = lib.mkIf
config.home-manager.users.${config.user}.services.dunst.enable
"${pkgs.libnotify}/bin/notify-send 'New mail arrived'";
};
maildir = { path = "main"; };