2024-05-18 20:55:04 +02:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
config,
|
|
|
|
inputs,
|
|
|
|
...
|
|
|
|
}: let
|
|
|
|
cfg = config.music;
|
|
|
|
in {
|
2024-05-18 13:45:54 +02:00
|
|
|
imports = [./mpd.nix];
|
2024-05-18 20:55:04 +02:00
|
|
|
|
|
|
|
options = {
|
|
|
|
music.enable = lib.mkEnableOption "make the system ready for listening to music";
|
|
|
|
};
|
|
|
|
|
|
|
|
config = lib.mkIf cfg.enable {
|
|
|
|
music.mpd.enable = lib.mkDefault true;
|
|
|
|
};
|
2024-05-18 13:45:54 +02:00
|
|
|
}
|