config/modules/home/services/mpd/default.nix
2024-09-16 22:24:47 -04:00

21 lines
343 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";
};
};
}