mirror of
https://github.com/nmasur/dotfiles
synced 2025-07-06 23:40:15 +00:00
initial refactoring
This commit is contained in:
@ -0,0 +1,20 @@
|
||||
{
|
||||
config,
|
||||
pkgs,
|
||||
lib,
|
||||
...
|
||||
}:
|
||||
|
||||
let
|
||||
cfg = config.nmasur.presets.programs.fd;
|
||||
in
|
||||
|
||||
{
|
||||
|
||||
options.nmasur.presets.programs.fd.enable = lib.mkEnableOption "fd file search tool";
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
home.packages = [ pkgs.fd ];
|
||||
xdg.configFile."fd/ignore".text = config.nmasur.presets.programs.ripgrep.ignorePatterns;
|
||||
};
|
||||
}
|
Reference in New Issue
Block a user