marleyos/modules/home/programs/ncmpcpp/default.nix

20 lines
284 B
Nix
Raw Normal View History

2024-11-16 18:30:58 -08:00
{
lib,
config,
namespace,
...
}:
let
inherit (lib) mkIf;
inherit (lib.${namespace}) mkEnableModule;
cfg = config.${namespace}.programs.ncmpcpp;
in
{
options = mkEnableModule "programs.ncmpcpp";
config = mkIf cfg.enable {
programs.ncmpcpp.enable = true;
};
}