diff --git a/configurations/mail.nix b/configurations/mail.nix index 3cc2da3f..5ab996b2 100644 --- a/configurations/mail.nix +++ b/configurations/mail.nix @@ -1,9 +1,13 @@ { pkgs, lib, ... }: let passwordScript = pkgs.writeScript "get_mail_password" '' + #!${pkgs.bash}/bin/bash + ${pkgs.pass}/bin/pass show "$@" | head -n1 | tr -d "\n" ''; notifyScript = name: pkgs.writeScript "notify_${name}_mail" '' + #!${pkgs.bash}/bin/bash + unseen_count=$(${pkgs.mblaze}/bin/mlist -N ~/mail/*/INBOX | wc -l) if [ "$unseen_count" = "1" ]