From 5b79c7d06bf41dcf09c4e953e0c9bcf8aa877da0 Mon Sep 17 00:00:00 2001 From: Tigor Hutasuhut Date: Sun, 20 Oct 2024 09:40:27 +0700 Subject: [PATCH] ytptube: add Vue.js icon to ntfy-sh notifications --- system/podman/ytptube.nix | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/system/podman/ytptube.nix b/system/podman/ytptube.nix index 7f6a634..0e47258 100644 --- a/system/podman/ytptube.nix +++ b/system/podman/ytptube.nix @@ -166,10 +166,18 @@ lib.mkMerge [ }; }) { - profile.services.ntfy-sh.client.settings.subscribe = [ - { - topic = "ytptube"; - } - ]; + profile.services.ntfy-sh.client.settings.subscribe = + let + vueIcon = pkgs.fetchurl { + url = "https://upload.wikimedia.org/wikipedia/commons/thumb/9/95/Vue.js_Logo_2.svg/120px-Vue.js_Logo_2.svg.png"; + hash = "sha256-chQ5dFB22qfGpGnYJ9B6NsUWlbfAeIIoJL5bSyz2YEg="; + }; + in + [ + { + command = ''${pkgs.libnotify}/bin/notify-send --app-name="YTPTUBE" --icon="${vueIcon}" --category=im.received --urgency=normal "$title" "$message"''; + topic = "ytptube"; + } + ]; } ]