fork/home-manager

git clone https://git.julia.blue/fork/home-manager

Gabriel Arazasmopidy: add modulecb9f03d5

master
910 B38 linesraw
1{ config, pkgs, ... }:
2
3{
4  services.mopidy = {
5    enable = true;
6    settings = {
7      file = {
8        enabled = true;
9        media_dirs = [ "$XDG_MUSIC_DIR|Music" "~/Downloads|Downloads" ];
10      };
11
12      spotify = {
13        enabled = true;
14        client_id = "TOTALLY_NOT_A_FAKE_CLIENT_ID";
15        client_secret = "YOU_CAN_USE_ME_FOR_YOUR_SPOTIFY_PREMIUM_SUBSCRIPTION";
16      };
17    };
18  };
19
20  test.stubs.mopidy = {
21    version = "0";
22    outPath = null;
23    buildScript = ''
24      mkdir -p $out/bin
25      touch $out/bin/mopidy
26      chmod +x $out/bin/mopidy
27    '';
28  };
29
30  nmt.script = ''
31    assertFileExists home-files/.config/systemd/user/mopidy.service
32    assertFileExists home-files/.config/systemd/user/mopidy-scan.service
33
34    assertFileExists home-files/.config/mopidy/mopidy.conf
35    assertFileContent home-files/.config/mopidy/mopidy.conf \
36        ${./basic-configuration.conf}
37  '';
38}