config/modules/home/services/mpd/default.nix

28 lines
501 B
Nix
Raw Normal View History

2024-09-16 22:24:47 -04:00
{
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)";
};
2025-05-28 16:55:13 -04:00
config = mkIf (cfg.enable && !pkgs.stdenv.isDarwin) {
2024-09-16 22:24:47 -04:00
services.mpd = {
enable = true;
musicDirectory = "/home/zoey/Music";
2024-09-27 12:09:26 -04:00
extraConfig = ''
audio_output {
type "pipewire"
name "PipeWire Sound Server"
}
'';
2024-09-16 22:24:47 -04:00
};
};
}