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";
23 services.filesWatcher.mpd = {
25 paths = [ "/var/secrets/mpd-config" ];
30 network.listenAddress = "any";
31 musicDirectory = myconfig.env.mpd.folder;
33 include "/var/secrets/mpd-config"
43 bind_to_address "/run/mpd/ogg.sock"
51 bind_to_address "/run/mpd/mp3.sock"