{ osConfig, config, pkgs, lib, ... }:
let
  inherit (lib.modules) mkIf;
  inherit (osConfig) modules;

  env = modules.usrEnv;
  prg = env.programs;
in {
  imports = [ ./binds.nix ./settings.nix ];

  config.programs.ncmpcpp = {
    enable = true;

    # provide visualisier support for ncmpcpp
    # it will optionally display a visualiser in the terminal
    # if the mpd server is configured to write the visualiser
    # mipe - e.g. /tmp/mpd.fifo
    package = pkgs.ncmpcpp.override { visualizerSupport = true; };

    # look for music tracks inside mpd's music directory
    mpdMusicDir = config.services.mpd.musicDirectory;
  };
}
