1 { lib, pkgs, config, myconfig, mylibs, ... }:
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 system.activationScripts.mpd = ''
23 install -d -m 0755 -o mpd -g mpd /run/mpd
27 network.listenAddress = "any";
28 musicDirectory = myconfig.env.mpd.folder;
30 include "/var/secrets/mpd-config"
40 bind_to_address "/run/mpd/ogg.sock"
48 bind_to_address "/run/mpd/mp3.sock"