change mpd config to declarative
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
+11 -11
View File
@@ -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