nixos-config/modules/workspace/mopidy.nix

22 lines
401 B
Nix
Raw Normal View History

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