22 lines
401 B
Nix
Raw Normal View History

2020-02-17 16:00:59 +03:00
{ pkgs, config, lib, ... }:
{
services.mopidy = {
enable = true;
2020-12-10 16:19:57 +03:00
extensionPackages = with pkgs; [ mopidy-mpd mopidy-youtube ];
configuration = ''
[youtube]
enabled = true
2020-02-17 16:00:59 +03:00
[mpd]
hostname = 0.0.0.0
2020-07-03 11:59:36 +03:00
port = 6600
2020-02-17 16:00:59 +03:00
[audio]
output = pulsesink server=127.0.0.1
'';
};
systemd.services.mopidy = {
after = [ "network-online.target" ];
};
}