1 { lib, pkgs, config, myconfig, mylibs, ... }:
4 nixpkgs.overlays = [ (self: super: rec {
5 mpd = (self.callPackage ./mpd.nix {}).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 system.activationScripts.mpd = ''
26 install -d -m 0755 -o mpd -g mpd /run/mpd
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"