feat: integrate mpd-mpris
allow mpd mpris
This commit is contained in:
parent
dfdd271350
commit
20029c971a
1 changed files with 13 additions and 11 deletions
|
@ -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; };
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue