feat: ripgrep

This commit is contained in:
punkfairie 2025-05-28 18:20:46 -07:00
parent 854b296c07
commit 16f2e7fd18
Signed by: punkfairie
GPG key ID: B3C5488E9A1A7CA6
6 changed files with 28 additions and 2 deletions

View file

@ -18,6 +18,7 @@ in {
less = enabled; less = enabled;
neovim = enabled; neovim = enabled;
nix-output-monitor = enabled; nix-output-monitor = enabled;
ripgrep = enabled;
}; };
} }
# #

View file

@ -6,5 +6,6 @@
./less.nix ./less.nix
./neovim.nix ./neovim.nix
./nix-output-monitor.nix ./nix-output-monitor.nix
./ripgrep.nix
]; ];
} }

View file

@ -1,6 +1,7 @@
{ {
lib,
config, config,
lib,
pkgs,
... ...
}: let }: let
cfg = config.marleyos.programs.ripgrep; cfg = config.marleyos.programs.ripgrep;
@ -8,6 +9,8 @@ in {
options.marleyos.programs.ripgrep.enable = lib.mkEnableOption "ripgrep"; options.marleyos.programs.ripgrep.enable = lib.mkEnableOption "ripgrep";
config = lib.mkIf cfg.enable { config = lib.mkIf cfg.enable {
programs.ripgrep.enable = true; environment.systemPackages = with pkgs; [
ripgrep
];
}; };
} }

View file

@ -27,6 +27,7 @@ in {
less = enabled; less = enabled;
man = enabled; man = enabled;
nh = enabled; nh = enabled;
ripgrep = enabled;
}; };
} }
# #

View file

@ -24,6 +24,7 @@
./neo.nix ./neo.nix
./neovim.nix ./neovim.nix
./nh.nix ./nh.nix
./ripgrep.nix
./waybar.nix ./waybar.nix
# TODO: uncomment when swaylock is figured out # TODO: uncomment when swaylock is figured out

View file

@ -0,0 +1,19 @@
{
marleylib,
config,
osConfig,
lib,
...
}: let
inherit (marleylib.module) mkEnableOption';
cfg = config.marleyos.programs.ripgrep;
osCfg = osConfig.marleyos.programs.ripgrep;
in {
options.marleyos.programs.ripgrep.enable =
mkEnableOption' "ripgrep" osCfg.enable;
config = lib.mkIf cfg.enable {
programs.ripgrep.enable = true;
};
}