From ef663af22b0d34f6a1c3592ad24a59908a06bc4b Mon Sep 17 00:00:00 2001 From: "Casper V. Kristensen" Date: Sun, 20 Aug 2023 16:18:04 +0200 Subject: [PATCH] ripgrep --- modules/base/default.nix | 1 + modules/base/ripgrep.nix | 11 +++++++++++ modules/base/system.nix | 1 - overlays/default.nix | 1 + overlays/ripgrep.nix | 7 +++++++ 5 files changed, 20 insertions(+), 1 deletion(-) create mode 100644 modules/base/ripgrep.nix create mode 100644 overlays/ripgrep.nix diff --git a/modules/base/default.nix b/modules/base/default.nix index 632e8bf..cf0ef2e 100644 --- a/modules/base/default.nix +++ b/modules/base/default.nix @@ -5,6 +5,7 @@ ./home-manager.nix ./impermanence.nix ./network.nix + ./ripgrep.nix ./ssh.nix ./system.nix ./users.nix diff --git a/modules/base/ripgrep.nix b/modules/base/ripgrep.nix new file mode 100644 index 0000000..0b31fdf --- /dev/null +++ b/modules/base/ripgrep.nix @@ -0,0 +1,11 @@ +{ home-manager, ... }: { + + home-manager.users.caspervk = { + programs.ripgrep = { + enable = true; + arguments = [ + "--smart-case" + ]; + }; + }; +} diff --git a/modules/base/system.nix b/modules/base/system.nix index 3fc10fb..b43f984 100644 --- a/modules/base/system.nix +++ b/modules/base/system.nix @@ -41,7 +41,6 @@ progress pwgen python3 - ripgrep rsync sqlite tmux diff --git a/overlays/default.nix b/overlays/default.nix index 61c403a..9e9de3c 100644 --- a/overlays/default.nix +++ b/overlays/default.nix @@ -1,5 +1,6 @@ { ... }: { imports = [ ./kanshi.nix + ./ripgrep.nix ]; } diff --git a/overlays/ripgrep.nix b/overlays/ripgrep.nix new file mode 100644 index 0000000..e46bbb1 --- /dev/null +++ b/overlays/ripgrep.nix @@ -0,0 +1,7 @@ +{ home-manager, home-manager-unstable, ... }: { + # ripgrep isn't in Home Manager v23.05 + + home-manager.users.caspervk = { + imports = [ "${home-manager-unstable}/modules/programs/ripgrep.nix" ]; + }; +}