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