vocard: use nix for configuration

This commit is contained in:
Gerg-L 2025-03-03 19:11:40 -05:00
parent bf8e99ce0e
commit 4f0a7c169c
Signed by: gerg-l
SSH key fingerprint: SHA256:FPYDHIkvMocr4wdmZXpgpJjsb2Tw6rASs2ISPbOb0KI
5 changed files with 273 additions and 287 deletions

View file

@ -0,0 +1,94 @@
{ link, lavalinkPlugins }:
{
server = {
http2.enabled = false;
port = link.portStr;
address = link.ipv4;
};
lavalink = {
plugins = [
{
dependency = "dev.lavalink.youtube:youtube-plugin:1.11.5";
enabled = true;
snapshot = false;
}
];
server = {
#password = "";
bufferDurationMs = 400;
filters = {
channelMix = true;
distortion = true;
equalizer = true;
karaoke = true;
lowPass = true;
rotation = true;
timescale = true;
tremolo = true;
vibrato = true;
volume = true;
};
frameBufferDurationMs = 5000;
gc-warnings = true;
nonAllocatingFrameBuffer = false;
opusEncodingQuality = 10;
playerUpdateInterval = 5;
resamplingQuality = "LOW";
soundcloudSearchEnabled = true;
sources = {
bandcamp = true;
http = true;
local = false;
nico = true;
soundcloud = true;
twitch = true;
vimeo = true;
youtube = false;
};
trackStuckThresholdMs = 10000;
useSeekGhosting = true;
youtubePlaylistLoadLimit = 6;
youtubeSearchEnabled = true;
};
};
logging = {
file.path = null;
level = {
"dev.lavalink.youtube.http.YoutubeOauth2Handler" = "INFO";
lavalink = "INFO";
root = "INFO";
};
request = {
enabled = true;
includeClientInfo = true;
includeHeaders = false;
includePayload = true;
includeQueryString = true;
maxPayloadLength = 10000;
};
};
metrics.prometheus.enabled = false;
plugins = {
pluginsDir = lavalinkPlugins;
youtube = {
allowDirectPlaylistIds = true;
allowDirectVideoIds = true;
allowSearch = true;
clients = [ "TVHTML5EMBEDDED" ];
enabled = true;
oauth = {
enabled = true;
#refreshToken = "";
};
};
};
sentry = {
dsn = "";
environment = "";
};
}