2024-04-23 19:12:16 +02:00
|
|
|
# Links & Resources:
|
|
|
|
# - https://mpd.readthedocs.io/en/stable/user.html
|
|
|
|
|
|
|
|
{ config, pkgs, lib, ... }:
|
|
|
|
|
|
|
|
with lib;
|
|
|
|
|
|
|
|
let
|
|
|
|
|
|
|
|
cfg = config.ccchh.services.audio;
|
|
|
|
|
|
|
|
in
|
|
|
|
|
|
|
|
{
|
|
|
|
config = mkIf cfg.enable {
|
|
|
|
services.mpd = {
|
|
|
|
enable = true;
|
|
|
|
network.listenAddress = "any";
|
|
|
|
extraConfig = ''
|
|
|
|
audio_output {
|
|
|
|
type "pipewire"
|
|
|
|
name "Pipewire"
|
2024-04-27 23:28:31 +02:00
|
|
|
mixer_type "software"
|
2024-04-23 19:12:16 +02:00
|
|
|
}
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
|
|
|
|
users.users.mpd.extraGroups = [ "pipewire" ];
|
|
|
|
|
|
|
|
networking.firewall = {
|
|
|
|
allowedTCPPorts = [ 6600 ];
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|