2022-11-11 11:54:21 +01:00
|
|
|
{ pkgs
|
|
|
|
, config
|
|
|
|
, lib
|
|
|
|
, ...
|
|
|
|
}:
|
|
|
|
with lib; let
|
|
|
|
cfg = config.eboskma.programs.mpd;
|
|
|
|
in
|
|
|
|
{
|
|
|
|
options.eboskma.programs.mpd = { enable = mkEnableOption "mpd"; };
|
|
|
|
|
2022-11-19 20:00:54 +01:00
|
|
|
config = mkIf cfg.enable {
|
2022-11-11 11:54:21 +01:00
|
|
|
services.mpd = {
|
|
|
|
enable = true;
|
|
|
|
network = {
|
|
|
|
startWhenNeeded = true;
|
|
|
|
};
|
2022-11-25 12:01:00 +01:00
|
|
|
extraConfig = ''
|
|
|
|
audio_output {
|
|
|
|
type "pipewire"
|
|
|
|
name "PipeWire Sound Server"
|
|
|
|
}
|
|
|
|
'';
|
2022-11-11 11:54:21 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
services.mpdris2 = {
|
|
|
|
enable = true;
|
|
|
|
notifications = true;
|
|
|
|
};
|
2022-11-17 14:06:39 +01:00
|
|
|
|
2022-11-25 12:01:00 +01:00
|
|
|
home.packages = with pkgs; [ mpc-cli (ncmpcpp.override { visualizerSupport = true; }) ];
|
2022-11-11 11:54:21 +01:00
|
|
|
};
|
|
|
|
}
|