change mpd config to declarative
Some checks failed
Check flake syntax / flake-check (push) Has been cancelled
Hydra callback / on_push (pull_request) Has been cancelled
Hydra callback / on_pr (pull_request) Has been cancelled

This commit is contained in:
2026-06-17 10:47:15 +02:00
parent 90d631f73c
commit b5b84e2ec8

View File

@@ -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