blob: c1e870b5a0523cb620578395f09a0a3af66ee010 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
{ config, pkgs, ... }:
{
imports = [ ../../profiles/mpd.nix ];
services.mpd.extraConfig = ''
audio_output {
type "httpd"
name "mpd"
encoder "vorbis" # optional, vorbis or lame
port "8080"
bind_to_address "127.0.0.1" # optional, IPv4 or IPv6
quality "5.0" # do not define if bitrate is defined
#bitrate "128" # do not define if quality is defined
format "44100:16:2"
max_clients "0" # optional 0=no limit
}
'';
systemd.services.mpd.serviceConfig.BindReadOnlyPaths = [
"/home/asmadeus/zik:/var/lib/mpd/music"
];
}
|