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" ];
23 system.activationScripts.mpd = ''
24 install -d -m 0755 -o mpd -g mpd /run/mpd
28 network.listenAddress = "any";
29 musicDirectory = myconfig.env.mpd.folder;
31 include "/run/keys/mpd-config"
41 bind_to_address "/run/mpd/ogg.sock"
49 bind_to_address "/run/mpd/mp3.sock"