33 lines
608 B
Nix
33 lines
608 B
Nix
{ pkgs
|
|
, config
|
|
, lib
|
|
, ...
|
|
}:
|
|
with lib; let
|
|
cfg = config.eboskma.programs.mpd;
|
|
in
|
|
{
|
|
options.eboskma.programs.mpd = { enable = mkEnableOption "mpd"; };
|
|
|
|
config = mkIf cfg.enable {
|
|
services.mpd = {
|
|
enable = true;
|
|
network = {
|
|
startWhenNeeded = true;
|
|
};
|
|
extraConfig = ''
|
|
audio_output {
|
|
type "pipewire"
|
|
name "PipeWire Sound Server"
|
|
}
|
|
'';
|
|
};
|
|
|
|
services.mpdris2 = {
|
|
enable = true;
|
|
notifications = true;
|
|
};
|
|
|
|
home.packages = with pkgs; [ mpc-cli (ncmpcpp.override { visualizerSupport = true; }) ];
|
|
};
|
|
}
|