From abd9678cb1e44397fde7b6a8519ad254620fffac Mon Sep 17 00:00:00 2001 From: Stefan Imhoff Date: Fri, 5 Jul 2024 14:08:11 +0200 Subject: [PATCH] feat(nix): migrate the_silver_searcher --- .dotbot.conf.yaml | 1 - Brewfile | 2 -- {search => nix/home/ag}/ag | 1 - nix/home/ag/default.nix | 11 +++++++++++ nix/home/default.nix | 1 + 5 files changed, 12 insertions(+), 4 deletions(-) rename {search => nix/home/ag}/ag (97%) create mode 100644 nix/home/ag/default.nix diff --git a/.dotbot.conf.yaml b/.dotbot.conf.yaml index 9b7fe3a..2e90ab9 100644 --- a/.dotbot.conf.yaml +++ b/.dotbot.conf.yaml @@ -13,7 +13,6 @@ - ~/.gnupg - link: - ~/.ag: search/ag ~/.asdfrc: asdf/asdfrc ~/.config/base16-shell: .base16-shell ~/.config/bat: bat diff --git a/Brewfile b/Brewfile index 7f4412c..abf773a 100644 --- a/Brewfile +++ b/Brewfile @@ -397,8 +397,6 @@ brew "superfile" brew "svgo" # Open source continuous file synchronization application brew "syncthing" -# Code-search similar to ack -brew "the_silver_searcher" # Text interface for Git repositories brew "tig" # Simplified and community-driven man pages diff --git a/search/ag b/nix/home/ag/ag similarity index 97% rename from search/ag rename to nix/home/ag/ag index bfa7e8c..e0f6703 100644 --- a/search/ag +++ b/nix/home/ag/ag @@ -2,4 +2,3 @@ log tags tmp - diff --git a/nix/home/ag/default.nix b/nix/home/ag/default.nix new file mode 100644 index 0000000..85e0e66 --- /dev/null +++ b/nix/home/ag/default.nix @@ -0,0 +1,11 @@ +{ pkgs, ... }: + +{ + home.file.".ag" = { + source = ./ag; + }; + + home.packages = [ + pkgs.silver-searcher + ]; +} diff --git a/nix/home/default.nix b/nix/home/default.nix index 20984c2..f038a24 100644 --- a/nix/home/default.nix +++ b/nix/home/default.nix @@ -7,6 +7,7 @@ in # https://nix-community.github.io/home-manager/options.html imports = [ ./ack + ./ag ./ripgrep ./skhd ./yabai