change quality settings for mpd & remove slskd for now as uses too much RAM
This commit is contained in:
parent
de89b62cab
commit
9ec2806331
|
@ -58,7 +58,7 @@ in {
|
||||||
++ (with hosts.hetzner-arm.containers.music.profiles; [
|
++ (with hosts.hetzner-arm.containers.music.profiles; [
|
||||||
mpd
|
mpd
|
||||||
musicSync
|
musicSync
|
||||||
soulseek
|
#soulseek
|
||||||
]);
|
]);
|
||||||
|
|
||||||
networking.firewall.allowedTCPPorts = with ports; [
|
networking.firewall.allowedTCPPorts = with ports; [
|
||||||
|
|
|
@ -27,12 +27,16 @@ in {
|
||||||
extraConfig =
|
extraConfig =
|
||||||
''
|
''
|
||||||
host_permissions "127.0.0.1 read,add,control,admin"
|
host_permissions "127.0.0.1 read,add,control,admin"
|
||||||
samplerate_converter "0"
|
|
||||||
metadata_to_use "title,artist"
|
metadata_to_use "title,artist"
|
||||||
auto_update "yes"
|
auto_update "yes"
|
||||||
audio_buffer_size "4096"
|
audio_buffer_size "4096"
|
||||||
replaygain "track"
|
replaygain "track"
|
||||||
audio_output_format "44100:16:2"
|
audio_output_format "48000:24:2"
|
||||||
|
resampler {
|
||||||
|
plugin "soxr"
|
||||||
|
quality "very high"
|
||||||
|
threads "0"
|
||||||
|
}
|
||||||
''
|
''
|
||||||
+ concatStringsSep "\n" (forEach ["low" "medium" "high"] (quality: let
|
+ concatStringsSep "\n" (forEach ["low" "medium" "high"] (quality: let
|
||||||
bitrates = {
|
bitrates = {
|
||||||
|
@ -43,26 +47,26 @@ in {
|
||||||
bitrate = bitrates.${quality};
|
bitrate = bitrates.${quality};
|
||||||
in ''
|
in ''
|
||||||
audio_output {
|
audio_output {
|
||||||
type "httpd"
|
type "httpd"
|
||||||
name "HTTP Opus ${bitrate}k"
|
name "http (opus-${bitrate}k) /opus/${quality}"
|
||||||
encoder "opus"
|
encoder "opus"
|
||||||
port "${toString ports."mpd-opus-${quality}"}"
|
port "${toString ports."mpd-opus-${quality}"}"
|
||||||
bitrate "${bitrate}000"
|
bitrate "${bitrate}000"
|
||||||
format "44100:16:2"
|
format "48000:24:2"
|
||||||
always_on "yes"
|
always_on "yes"
|
||||||
tags "yes"
|
tags "yes"
|
||||||
signal "music"
|
signal "music"
|
||||||
}
|
}
|
||||||
''))
|
''))
|
||||||
+ ''
|
+ ''
|
||||||
audio_output {
|
audio_output {
|
||||||
type "httpd"
|
type "httpd"
|
||||||
name "HTTP FLAC"
|
name "http (flac) /flac"
|
||||||
encoder "flac"
|
encoder "flac"
|
||||||
port "${toString ports.mpd-flac}"
|
port "${toString ports.mpd-flac}"
|
||||||
format "44100:16:2"
|
format "48000:24:2"
|
||||||
always_on "yes"
|
always_on "yes"
|
||||||
tags "yes"
|
tags "yes"
|
||||||
}
|
}
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue