ytptube: add Vue.js icon to ntfy-sh notifications

This commit is contained in:
Tigor Hutasuhut 2024-10-20 09:40:27 +07:00
parent b07ffb6825
commit 5b79c7d06b

View file

@ -166,8 +166,16 @@ lib.mkMerge [
}; };
}) })
{ {
profile.services.ntfy-sh.client.settings.subscribe = [ 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"; topic = "ytptube";
} }
]; ];