home-manager/tests/modules/services/mopidy/mopidy-scan.nix

28 lines
522 B
Nix
Raw Normal View History

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