mirror of
https://github.com/alyraffauf/nixcfg.git
synced 2024-11-25 06:11:55 -05:00
18 lines
330 B
Nix
18 lines
330 B
Nix
{
|
|
pkgs,
|
|
lib,
|
|
config,
|
|
...
|
|
}: {
|
|
config = lib.mkIf config.alyraffauf.services.mpd.enable {
|
|
services.mpd = {
|
|
enable = true;
|
|
musicDirectory = config.alyraffauf.services.mpd.musicDirectory;
|
|
};
|
|
services.mpd-mpris = {
|
|
enable = true;
|
|
mpd.port = config.services.mpd.network.port;
|
|
};
|
|
};
|
|
}
|