mirror of
				https://github.com/materusPL/nixos-config
				synced 2025-11-04 06:20:27 +01:00 
			
		
		
		
	configurations: updates to script, moniotoring and dcbot
This commit is contained in:
		
							parent
							
								
									3406af1780
								
							
						
					
					
						commit
						dd0283e65a
					
				@ -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 ''
 | 
				
			||||||
 | 
				
			|||||||
@ -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;
 | 
				
			||||||
          };
 | 
					          };
 | 
				
			||||||
 | 
				
			|||||||
@ -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
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user