2024-05-11 00:26:54 +02:00
|
|
|
{ config, pkgs, ... }:
|
|
|
|
|
|
|
|
{
|
|
|
|
services.mopidy = {
|
|
|
|
enable = true;
|
|
|
|
extensionPackages = [ pkgs.mopidy-local ];
|
|
|
|
};
|
|
|
|
|
2024-09-14 12:14:21 +02:00
|
|
|
test.stubs = {
|
|
|
|
mopidy = {
|
|
|
|
version = "0";
|
|
|
|
outPath = null;
|
|
|
|
buildScript = ''
|
2024-09-15 01:45:42 +02:00
|
|
|
mkdir -p $out/bin
|
|
|
|
touch $out/bin/mopidy
|
|
|
|
chmod +x $out/bin/mopidy
|
|
|
|
'';
|
2024-09-14 12:14:21 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
mopidy-local = { };
|
|
|
|
};
|
|
|
|
|
2024-05-11 00:26:54 +02:00
|
|
|
nmt.script = ''
|
|
|
|
assertFileExists home-files/.config/systemd/user/mopidy.service
|
|
|
|
assertFileExists home-files/.config/systemd/user/mopidy-scan.service
|
|
|
|
'';
|
|
|
|
}
|