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