helm/modules/shell/ncmpcpp.nix

22 lines
596 B
Nix
Raw Normal View History

2019-08-06 10:56:54 -07:00
{ config, lib, pkgs, ... }:
{
2020-01-12 15:17:17 -08:00
my.packages = with pkgs; [
2019-08-06 10:56:54 -07:00
(ncmpcpp.override { visualizerSupport = true; })
];
2020-01-12 15:17:17 -08:00
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.
2020-01-12 15:17:17 -08:00
my.home.xdg.configFile = {
2020-01-17 01:22:50 -08:00
"ncmpcpp/config".source = <config/ncmpcpp/config>;
"ncmpcpp/bindings".source = <config/ncmpcpp/bindings>;
2019-08-06 10:56:54 -07:00
};
}