mirror of
https://github.com/nix-community/home-manager
synced 2024-12-27 04:09:47 +01:00
39 lines
942 B
Nix
39 lines
942 B
Nix
{ config, pkgs, ... }:
|
|
|
|
{
|
|
services.mopidy = {
|
|
enable = true;
|
|
extensionPackages = [ ];
|
|
settings = {
|
|
file = {
|
|
enabled = true;
|
|
media_dirs = [ "$XDG_MUSIC_DIR|Music" "~/Downloads|Downloads" ];
|
|
};
|
|
|
|
spotify = {
|
|
enabled = true;
|
|
client_id = "TOTALLY_NOT_A_FAKE_CLIENT_ID";
|
|
client_secret = "YOU_CAN_USE_ME_FOR_YOUR_SPOTIFY_PREMIUM_SUBSCRIPTION";
|
|
};
|
|
};
|
|
};
|
|
|
|
test.stubs.mopidy = {
|
|
version = "0";
|
|
outPath = null;
|
|
buildScript = ''
|
|
mkdir -p $out/bin
|
|
touch $out/bin/mopidy
|
|
chmod +x $out/bin/mopidy
|
|
'';
|
|
};
|
|
|
|
nmt.script = ''
|
|
assertFileExists home-files/.config/systemd/user/mopidy.service
|
|
assertPathNotExists home-files/.config/systemd/user/mopidy-scan.service
|
|
|
|
assertFileExists home-files/.config/mopidy/mopidy.conf
|
|
assertFileContent home-files/.config/mopidy/mopidy.conf \
|
|
${./basic-configuration.conf}
|
|
'';
|
|
}
|