feat: ripgrep
This commit is contained in:
parent
854b296c07
commit
16f2e7fd18
6 changed files with 28 additions and 2 deletions
|
@ -18,6 +18,7 @@ in {
|
||||||
less = enabled;
|
less = enabled;
|
||||||
neovim = enabled;
|
neovim = enabled;
|
||||||
nix-output-monitor = enabled;
|
nix-output-monitor = enabled;
|
||||||
|
ripgrep = enabled;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
#
|
#
|
||||||
|
|
|
@ -6,5 +6,6 @@
|
||||||
./less.nix
|
./less.nix
|
||||||
./neovim.nix
|
./neovim.nix
|
||||||
./nix-output-monitor.nix
|
./nix-output-monitor.nix
|
||||||
|
./ripgrep.nix
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
|
@ -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
|
||||||
|
];
|
||||||
};
|
};
|
||||||
}
|
}
|
|
@ -27,6 +27,7 @@ in {
|
||||||
less = enabled;
|
less = enabled;
|
||||||
man = enabled;
|
man = enabled;
|
||||||
nh = enabled;
|
nh = enabled;
|
||||||
|
ripgrep = enabled;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
#
|
#
|
||||||
|
|
|
@ -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
|
||||||
|
|
19
modules/home/programs/ripgrep.nix
Normal file
19
modules/home/programs/ripgrep.nix
Normal 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;
|
||||||
|
};
|
||||||
|
}
|
Loading…
Reference in a new issue