config/modules/home/services/mpd/default.nix
2024-09-27 12:09:26 -04:00

27 lines
474 B
Nix

{
lib,
config,
pkgs,
...
}:
with lib;
with lib.custom; let
cfg = config.services.music;
in {
options.services.music = with types; {
enable = mkBoolOpt false "Enable MPD (Music Player Daemon)";
};
config = mkIf cfg.enable {
services.mpd = {
enable = true;
musicDirectory = "/home/zoey/Music";
extraConfig = ''
audio_output {
type "pipewire"
name "PipeWire Sound Server"
}
'';
};
};
}