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