home

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

mpd.nix (472B)


      1 { config, lib, pkgs, ... }:
      2 
      3 with lib; {
      4   services.mpd = {
      5     enable = true;
      6     # FIXME put this into an option
      7     musicDirectory = "/net/sakhalin.home/export/gaia/music";
      8     network.listenAddress = "any";
      9     extraConfig = ''
     10       audio_output {
     11         type    "pulse"
     12         name    "Local MPD"
     13       }
     14     '';
     15   };
     16   services.mpdris2 = {
     17     enable = true;
     18     mpd.host = "127.0.0.1";
     19   };
     20   home.packages = with pkgs; [
     21     ario
     22     mpc_cli
     23     ncmpcpp
     24   ];
     25 }