feat(nix): migrate ack settings

This commit is contained in:
Stefan Imhoff
2024-06-30 09:37:52 +02:00
parent 98ed207c77
commit 1c58b682bc
4 changed files with 10 additions and 1 deletions

32
nix/home/ack/ack Normal file
View File

@@ -0,0 +1,32 @@
# group the results by file
--group
# only search case-sensitiv with mixed case
--smart-case
# follow symlinks
--follow
# Colorful output
--color
# Ignore directories
--ignore-dir=vendor
--ignore-dir=log
--ignore-dir=tmp
--ignore-dir=gems
--ignore-dir=node_modules
--ignore-dir=bower_components
# Add file types
--type-set=css=.css,.less,.scss,.styl
--type-set=html=.html,.mustache,.handlebars,.tmpl
--type-set=json=.json
--type-set=less=.less
--type-set=md=.markdown,.md
--type-set=sass=.sass,.scss
--type-set=styl=.styl
--type-set=style=.scss,.sass,.styl,.less,.css
--type-set=svg=.svg
--type-set=ts=.ts

9
nix/home/ack/default.nix Normal file
View File

@@ -0,0 +1,9 @@
{ config, pkgs, ... }:
{
home.file.".ack" = {
source = ./ack;
};
home.packages = [ pkgs.ack ];
}

View File

@@ -6,6 +6,7 @@ in
{
# https://nix-community.github.io/home-manager/options.html
imports = [
./ack
./ripgrep
./skhd
./yabai