From 1e629226dbc8e638da3b25cb1693e356cca445a1 Mon Sep 17 00:00:00 2001 From: punkfairie Date: Sat, 16 Nov 2024 19:41:14 -0800 Subject: [PATCH] feat(home): ripgrep --- homes/x86_64-linux/marley@nyx/default.nix | 1 + modules/home/programs/ripgrep/default.nix | 19 +++++++++++++++++++ old/home/programs/ripgrep.nix | 6 ------ 3 files changed, 20 insertions(+), 6 deletions(-) create mode 100644 modules/home/programs/ripgrep/default.nix delete mode 100644 old/home/programs/ripgrep.nix diff --git a/homes/x86_64-linux/marley@nyx/default.nix b/homes/x86_64-linux/marley@nyx/default.nix index f90d5d2..b176a85 100644 --- a/homes/x86_64-linux/marley@nyx/default.nix +++ b/homes/x86_64-linux/marley@nyx/default.nix @@ -37,6 +37,7 @@ in ncmpcpp = enabled; neo = enabled; rbw = enabled; + ripgrep = enabled; systemctl = enabled; }; xorg = { diff --git a/modules/home/programs/ripgrep/default.nix b/modules/home/programs/ripgrep/default.nix new file mode 100644 index 0000000..e8416b5 --- /dev/null +++ b/modules/home/programs/ripgrep/default.nix @@ -0,0 +1,19 @@ +{ + lib, + config, + namespace, + ... +}: +let + inherit (lib) mkIf; + inherit (lib.${namespace}) mkEnableModule; + + cfg = config.${namespace}.programs.ripgrep; +in +{ + options = mkEnableModule "programs.ripgrep"; + + config = mkIf cfg.enable { + programs.ripgrep.enable = true; + }; +} diff --git a/old/home/programs/ripgrep.nix b/old/home/programs/ripgrep.nix deleted file mode 100644 index 43856fc..0000000 --- a/old/home/programs/ripgrep.nix +++ /dev/null @@ -1,6 +0,0 @@ -{ ... }: -{ - programs.ripgrep = { - enable = true; - }; -}