From 51787b8a9152d504d01dad70b424a1b44774acfb Mon Sep 17 00:00:00 2001 From: Nydragon Date: Fri, 17 May 2024 07:19:37 +0900 Subject: [PATCH] git: add to config --- home/default.nix | 1 + home/git/default.nix | 39 +++++++++++++++++++++++++++++++++++++++ 2 files changed, 40 insertions(+) create mode 100644 home/git/default.nix diff --git a/home/default.nix b/home/default.nix index e24a58e..cbc0f81 100644 --- a/home/default.nix +++ b/home/default.nix @@ -13,6 +13,7 @@ ./neovim ./rofi ./thunderbird + ./git ]; xdg.configFile."gtk-4.0/gtk.css".source = "${pkgs.catppuccin-gtk}/share/themes/Catppuccin-Frappe-Standard-Blue-Dark/gtk-4.0/gtk.css"; diff --git a/home/git/default.nix b/home/git/default.nix new file mode 100644 index 0000000..092f2ec --- /dev/null +++ b/home/git/default.nix @@ -0,0 +1,39 @@ +{ pkgs, ... }: +{ + programs.git = { + enable = true; + userName = "Nydragon"; + userEmail = "contact@ccnlc.eu"; + signing = { + key = "25FF8464F0627EC001296A4314AA30A865EA1209"; + signByDefault = true; + }; + extraConfig = { + push = { + autoSetupRemote = true; + }; + pull = { + rebase = true; + }; + core = { + editor = "${pkgs.neovim}/bin/nvim"; + }; + init = { + defaultBranch = "master"; + }; + #interactive = { + #diffFilter = "delta --color-only"; + #}; + #delta = { + #navigate = true; + #}; + merge = { + conflictstyle = "diff3"; + }; + diff = { + colorMoved = "default"; + }; + }; + delta.enable = true; + }; +}