configurations: updates to script, moniotoring and dcbot

This commit is contained in:
Mateusz Słodkowicz 2024-09-09 11:04:15 +02:00
parent 3406af1780
commit dd0283e65a
Signed by: materus
GPG Key ID: 28D140BCA60B4FD1
3 changed files with 4 additions and 6 deletions

View File

@ -28,9 +28,9 @@
wantedBy = [ "multi-user.target" ]; wantedBy = [ "multi-user.target" ];
path = [ pkgs.jdk ]; path = [ pkgs.jdk ];
script = let script = let
musicbot = let version = "0.4.2"; in (pkgs.fetchurl { musicbot = let version = "0.4.3"; in (pkgs.fetchurl {
url = "https://github.com/jagrosh/MusicBot/releases/download/${version}/JMusicBot-${version}.jar"; url = "https://github.com/jagrosh/MusicBot/releases/download/${version}/JMusicBot-${version}.jar";
sha256 = "sha256-Jg6/ju3ADBd7fc3njRzoEDVjIL4SzAzlTc02I4Q9hz4="; sha256 = "sha256-7CHFc94Fe6ip7RY+XJR9gWpZPKM5JY7utHp8C3paU9s=";
}); });
in '' in ''

View File

@ -11,11 +11,9 @@
enable = true; enable = true;
settings = { settings = {
server = { server = {
# Listening Address
http_addr = "127.0.0.1"; http_addr = "127.0.0.1";
# and Port
http_port = 3232; http_port = 3232;
# Grafana needs to know on which domain and URL it's running
domain = "watchman.materus.pl"; domain = "watchman.materus.pl";
serve_from_sub_path = true; serve_from_sub_path = true;
}; };

View File

@ -1,7 +1,7 @@
#/usr/bin/env bash #/usr/bin/env bash
IFS=$'\n' IFS=$'\n'
CONVERT="$(nix eval nixpkgs\#imagemagick.outPath | tr -d '"')/bin/convert" CONVERT="$(nix eval nixpkgs\#imagemagick.outPath | tr -d '"')/bin/magick"
convert_cmd () { convert_cmd () {
if ! command -v magick &> /dev/null; then $CONVERT "$@"; else convert "$@"; fi if ! command -v magick &> /dev/null; then $CONVERT "$@"; else convert "$@"; fi
} }