helm/modules/shell/ncmpcpp.nix
2020-01-23 18:58:53 -05:00

22 lines
596 B
Nix

{ config, lib, pkgs, ... }:
{
my.packages = with pkgs; [
(ncmpcpp.override { visualizerSupport = true; })
];
my.env.MPD_HOME = "$XDG_CONFIG_HOME/mpd";
my.env.NCMPCPP_HOME = "$XDG_CONFIG_HOME/ncmpcpp";
my.alias.rate = "mpd-rate";
my.alias.mpcs = "mpc search any";
my.alias.mpcsp = "mpc searchplay any";
# Symlink these one at a time because ncmpcpp writes other files to
# ~/.config/ncmpcpp, so it needs to be writeable.
my.home.xdg.configFile = {
"ncmpcpp/config".source = <config/ncmpcpp/config>;
"ncmpcpp/bindings".source = <config/ncmpcpp/bindings>;
};
}