1 { lib, pkgs, config, myconfig, ... }:
8 text = myconfig.env.mpd.password;
16 password "${myconfig.env.mpd.password}@read,add,control,admin"
20 networking.firewall.allowedTCPPorts = [ 6600 ];
21 users.users.mpd.extraGroups = [ "wwwrun" "keys" ];
22 systemd.services.mpd.serviceConfig.RuntimeDirectory = "mpd";
25 network.listenAddress = "any";
26 musicDirectory = myconfig.env.mpd.folder;
28 include "/var/secrets/mpd-config"
38 bind_to_address "/run/mpd/ogg.sock"
46 bind_to_address "/run/mpd/mp3.sock"