feat: integrate mpd-mpris

allow mpd mpris
This commit is contained in:
Zhongheng Liu 2025-05-29 19:07:54 +03:00
commit 20029c971a
Signed by: steven
GPG key ID: 805A28B071DAD84B

View file

@ -1,16 +1,18 @@
{ pkgs, config, lib, ... }: { pkgs, config, lib, ... }:
lib.mkIf config.usingMusicPlayerDaemon { lib.mkIf config.usingMusicPlayerDaemon {
home.packages = [ pkgs.ncmpc ]; home.packages = [ pkgs.ncmpc ];
services.mpd = { services = {
enable = true; mpd = {
network.listenAddress = "any"; enable = true;
network.port = 6600; network.listenAddress = "any";
extraConfig = '' network.port = 6600;
audio_output { extraConfig = ''
type "pipewire" audio_output {
name "my pipewire output" type "pipewire"
} name "my pipewire output"
''; }
'';
};
mpd-mpris = { enable = true; };
}; };
services.mpd-mpris = { enable = true; };
} }