nixos-config/common/services/ssh.sh
2024-05-09 20:50:05 +02:00

12 lines
356 B
Bash
Executable file

if [[ -n $SSH_CONNECTION ]] ; then
curl \
-H "Title: New SSH session" \
-H "Priority: urgent" \
-H "Tags: urgent" \
-d "$(cat /etc/hostname ): ssh sessifsfsqqfqsqsfon ($SSH_CONNECTION)" \
ntfy.sh/tasiaiso_alerts &> /dev/null # Please don't make me learn how to manage secrets
fi
/run/current-system/sw/bin/zsh