diff --git a/gitignore b/gitignore new file mode 100644 index 0000000..8e10828 --- /dev/null +++ b/gitignore @@ -0,0 +1,2 @@ +.cache +compile_commands.json diff --git a/home.nix b/home.nix index a24e51c..096f2f5 100644 --- a/home.nix +++ b/home.nix @@ -106,11 +106,25 @@ in git = { enable = true; - delta = { - enable = true; - }; userName = "Quentin Boyer"; userEmail = localinfo.email; + delta = { + enable = true; + options = { + line-numbers = true; + syntax-theme = "Dracula"; + plus-style = "auto \"#121bce\""; + plus-emph-style = "auto \"#6083eb\""; + }; + }; + extraConfig = { + diff = { + algorithm = "histogram"; + }; + core = { + excludesfile = "${localinfo.homeDir}/.gitignore"; + }; + }; }; zoxide = { @@ -174,6 +188,7 @@ in }; ".zprofile".source = ./zprofile; ".p10k.zsh".source = ./p10k.zsh; + ".gitignore".source = ./gitignore; "bin" = { source = ./scripts; recursive = true;