helm/modules/shell/ncmpcpp.nix

30 lines
776 B
Nix
Raw Normal View History

2020-03-28 22:48:43 -07:00
{ config, options, lib, pkgs, ... }:
with lib;
2019-08-06 10:56:54 -07:00
{
2020-03-28 22:48:43 -07:00
options.modules.shell.ncmpcpp = {
enable = mkOption {
type = types.bool;
default = false;
};
};
config = mkIf config.modules.shell.ncmpcpp.enable {
my.packages = with pkgs; [
(ncmpcpp.override { visualizerSupport = true; })
];
2019-08-06 10:56:54 -07:00
2020-03-28 22:48:43 -07:00
my.alias.rate = "mpd-rate";
my.alias.mpcs = "mpc search any";
my.alias.mpcsp = "mpc searchplay any";
2020-01-12 15:17:17 -08:00
2020-03-28 22:48:43 -07:00
my.env.NCMPCPP_HOME = "$XDG_CONFIG_HOME/ncmpcpp";
2020-01-12 15:17:17 -08:00
2020-03-28 22:48:43 -07:00
# 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>;
};
2019-08-06 10:56:54 -07:00
};
}