1 { lib, pkgs, config, myconfig, mylibs, ... }:
4 nixpkgs.overlays = [ (self: super: rec {
5 mpd = (self.callPackage ./mpd.nix {}).mpd;
10 text = myconfig.env.mpd.password;
17 password "${myconfig.env.mpd.password}@read,add,control,admin"
21 networking.firewall.allowedTCPPorts = [ 6600 ];
22 users.users.mpd.extraGroups = [ "wwwrun" "keys" ];
25 network.listenAddress = "any";
26 musicDirectory = myconfig.env.mpd.folder;
28 include "/run/keys/mpd-config"
38 port "${myconfig.env.ports.mpd_ogg}"
39 bind_to_address "127.0.0.1"
47 port "${myconfig.env.ports.mpd_mp3}"
48 bind_to_address "127.0.0.1"