From 35672dbb90d610c25d2a0fe40576849b9dfd411f Mon Sep 17 00:00:00 2001 From: Tigor Hutasuhut Date: Wed, 23 Oct 2024 23:53:55 +0700 Subject: [PATCH] openssh: login notification now has an icon --- system/modules/openssh.nix | 9 ++++++++- system/modules/ssh-svgrepo-com.svg | 21 +++++++++++++++++++++ 2 files changed, 29 insertions(+), 1 deletion(-) create mode 100644 system/modules/ssh-svgrepo-com.svg diff --git a/system/modules/openssh.nix b/system/modules/openssh.nix index 94affe1..882e1e1 100644 --- a/system/modules/openssh.nix +++ b/system/modules/openssh.nix @@ -72,5 +72,12 @@ lib.mkMerge [ '' ); }) - { profile.services.ntfy-sh.client.settings.subscribe = [ { topic = "ssh"; } ]; } + { + profile.services.ntfy-sh.client.settings.subscribe = [ + { + command = ''${pkgs.libnotify}/bin/notify-send --app-name="openssh" --icon="${./ssh-svgrepo-com.svg}" --category=im.received --urgency=normal "$title" "$message"''; + topic = "ssh"; + } + ]; + } ] diff --git a/system/modules/ssh-svgrepo-com.svg b/system/modules/ssh-svgrepo-com.svg new file mode 100644 index 0000000..52ee332 --- /dev/null +++ b/system/modules/ssh-svgrepo-com.svg @@ -0,0 +1,21 @@ + + + + + databases-and-servers/servers/ssh + Created with Sketch. + + + + + + + + + + + + + + + \ No newline at end of file