Nix-Config/system/shared/services/mopidy.nix

33 lines
631 B
Nix
Raw Normal View History

{ config, pkgs, inputs, ... }:
{
services.mopidy = {
enable = true;
extensionPackages = with pkgs; [
mopidy-spotify
mopidy-mpd
mopidy-local
mopidy-tunein
mopidy-notify
mopidy-bandcamp
mopidy-iris
];
configuration = ''
[audio]
mixer = software
output = pulsesink server=127.0.0.1
[spotify]
username = m5rbjtehisns9eq601d2hzw62
password =
client_id = a33a989f-bc04-43ea-a043-56232745d702
client_secret =
'';
};
hardware.pulseaudio.extraConfig = "load-module module-native-protocol-tcp auth-ip-acl=127.0.0.1";
}