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; - }; -}