Here’s my current mpd config:
environment.systemPackages = with pkgs; [
mpc-cli
];
services.mpd = {
enable = true;
musicDirectory = "/home/${username}/Music";
user = username; #string containing my username"
extraConfig = ''
audio_output {
type "pipewire"
name "pipewire boi"
}
'';
# Optional:
network.listenAddress = "any"; # if you want to allow non-localhost connections
};
ncmpcpp --version returns:
ncmpcpp 0.9.2
optional screens compiled-in:
- tag editor
- tiny tag editor
- outputs
- visualizer
- clock
encoding detection: enabled
built with support for: fftw ncurses taglib
systemctl status --user pipewire returns:
● pipewire.service - PipeWire Multimedia Service
Loaded: loaded (/etc/systemd/user/pipewire.service; linked-runtime; preset: enabled)
Drop-In: /nix/store/qlsj8h3w4b0b1lh3rfbkl8j8rqr738jp-user-units/pipewire.service.d
└─overrides.conf
Active: active (running) since Tue 2022-11-29 20:36:46 EST; 54s ago
TriggeredBy: ● pipewire.socket
Main PID: 30073 (pipewire)
Tasks: 5 (limit: 19127)
Memory: 7.3M
CPU: 64ms
CGroup: /user.slice/user-1000.slice/user@1000.service/session.slice/pipewire.service
└─30073 /nix/store/vw9d67i7d2s1l7r77w3f2pdiack62ww2-pipewire-0.3.59/bin/pipewire
Nov 29 20:36:46 Entertainer systemd[1904]: Started PipeWire Multimedia Service.
Nov 29 20:36:46 Entertainer pipewire[30073]: mod.rt: Can't find xdg-portal: (null)
Nov 29 20:36:46 Entertainer pipewire[30073]: mod.rt: found session bus but no portal
Nov 29 20:36:46 Entertainer pipewire[30073]: [0:29:44.403635571] [30073] INFO IPAManager ipa_manager.cpp:143 libcamera is not installed. Adding '/nix/store/src/ipa' to the IPA search path
Nov 29 20:36:46 Entertainer pipewire[30073]: [0:29:44.403802139] [30073] INFO Camera camera_manager.cpp:293 libcamera v0.0.1
ncmpcpp sees all my music, but when I add music to the playlist and try to unpause nothing happens.
running mpc after that returns this:
[paused] #1/1 0:00/2:50 (0%)
volume:100% repeat: off random: off single: off consume: off
ERROR: Failed to open "pipewire boi" (pipewire); Failed to connect stream: Host is down
But clearly it isn’t down, because the service is running.