1 { lib, pkgs, config, myconfig, ... }:
4 services.backup.profiles.mpd = {
5 rootDir = "/var/lib/mpd";
11 text = myconfig.env.mpd.password;
19 password "${myconfig.env.mpd.password}@read,add,control,admin"
23 networking.firewall.allowedTCPPorts = [ 6600 ];
24 users.users.mpd.extraGroups = [ "wwwrun" "keys" ];
25 systemd.services.mpd.serviceConfig.RuntimeDirectory = "mpd";
26 services.filesWatcher.mpd = {
28 paths = [ "/var/secrets/mpd-config" ];
33 network.listenAddress = "any";
34 musicDirectory = myconfig.env.mpd.folder;
36 include "/var/secrets/mpd-config"
46 bind_to_address "/run/mpd/ogg.sock"
54 bind_to_address "/run/mpd/mp3.sock"