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

19 lines
285 B
Nix

{
lib,
config,
namespace,
...
}:
let
inherit (lib) mkIf;
inherit (lib.marleyos) mkEnableModule;
cfg = config.marleyos.programs.ripgrep;
in
{
options.marleyos = mkEnableModule "programs.ripgrep";
config = mkIf cfg.enable {
programs.ripgrep.enable = true;
};
}