28 lines
444 B
Nix
28 lines
444 B
Nix
{
|
|
lib,
|
|
config,
|
|
pkgs,
|
|
...
|
|
}: let
|
|
cfg = config.marleyos.services.mopidy;
|
|
in {
|
|
options.marleyos.services.mopidy.enable = lib.mkEnableOption "mopidy";
|
|
|
|
config = lib.mkIf cfg.enable {
|
|
services.mopidy = {
|
|
enable = true;
|
|
|
|
extensionPackages = with pkgs; [
|
|
mopidy-mpd
|
|
mopidy-jellyfin
|
|
];
|
|
|
|
configuration =
|
|
# ini
|
|
''
|
|
[mpd]
|
|
hostname = ::
|
|
'';
|
|
};
|
|
};
|
|
}
|