mirror of
https://github.com/kogakure/dotfiles.git
synced 2026-02-03 20:25:30 +00:00
feat(nix): migrate ripgrep settings
This commit is contained in:
@@ -7,7 +7,13 @@ This is my folder where I migrate my current dotfile setup to [Nix](https://nixo
|
||||
|
||||
```sh
|
||||
# First time install
|
||||
nix run nix-darwin -- switch --flake ~/.config/nix-darwin
|
||||
nix run nix-darwin -- switch --flake ~/.dotfiles/nix
|
||||
```
|
||||
|
||||
By default the `$hostname` that matches the current machine is used, but it is possible to manually load one by running:
|
||||
|
||||
```sh
|
||||
nix run nix-darwin -- switch --flake ~/.dotfiles/nix#mac-mini
|
||||
```
|
||||
|
||||
Make sure this is added to your path:
|
||||
|
||||
@@ -6,6 +6,7 @@ in
|
||||
{
|
||||
# https://nix-community.github.io/home-manager/options.html
|
||||
imports = [
|
||||
./ripgrep
|
||||
./skhd
|
||||
./yabai
|
||||
];
|
||||
@@ -23,11 +24,6 @@ in
|
||||
# environment.
|
||||
home.packages = with pkgs; [
|
||||
nixpkgs-fmt
|
||||
ripgrep
|
||||
];
|
||||
|
||||
home.sessionVariables = {
|
||||
EDITOR = "vim";
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
11
nix/home/ripgrep/default.nix
Normal file
11
nix/home/ripgrep/default.nix
Normal file
@@ -0,0 +1,11 @@
|
||||
{ config, pkgs, ... }:
|
||||
|
||||
{
|
||||
home.file.".config/ripgrep/ripgreprc" = {
|
||||
source = ./ripgreprc;
|
||||
};
|
||||
|
||||
programs.ripgrep = {
|
||||
enable = true;
|
||||
};
|
||||
}
|
||||
11
nix/home/ripgrep/ripgreprc
Normal file
11
nix/home/ripgrep/ripgreprc
Normal file
@@ -0,0 +1,11 @@
|
||||
--max-columns-preview
|
||||
|
||||
--type-add
|
||||
web:*.{html,css,js,jsx,ts,tsx}*
|
||||
|
||||
--type-add
|
||||
text:*.{md,mdx,txt}*
|
||||
|
||||
--glob=!git/*
|
||||
|
||||
--smart-case
|
||||
Reference in New Issue
Block a user