change mpd config to declarative
This commit is contained in:
@@ -67,17 +67,17 @@ in
|
|||||||
mpd = {
|
mpd = {
|
||||||
enable = true;
|
enable = true;
|
||||||
musicDirectory = "/var/lib/mpd/music";
|
musicDirectory = "/var/lib/mpd/music";
|
||||||
extraConfig = ''
|
settings = {
|
||||||
audio_output {
|
audio_output = [{
|
||||||
type "alsa"
|
type = "alsa";
|
||||||
name "My ALSA"
|
name = "My ALSA";
|
||||||
device "hw:0,0" # optional
|
device = "hw:0,0"; # optional
|
||||||
format "44100:16:2" # optional
|
format = "44100:16:2"; # optional
|
||||||
mixer_type "hardware"
|
mixer_type = "hardware";
|
||||||
mixer_device "default"
|
mixer_device = "default";
|
||||||
mixer_control "PCM"
|
mixer_control = "PCM";
|
||||||
}
|
}];
|
||||||
'';
|
};
|
||||||
|
|
||||||
# Optional:
|
# Optional:
|
||||||
network.listenAddress = "any"; # if you want to allow non-localhost connections
|
network.listenAddress = "any"; # if you want to allow non-localhost connections
|
||||||
|
|||||||
Reference in New Issue
Block a user