git: ship .gitconfig
All checks were successful
continuous-integration/drone/pr Build is passing
continuous-integration/drone/push Build is passing

This commit is contained in:
Jake Hillion 2023-01-21 20:08:05 +00:00
parent f355e3c78b
commit c31106951b
2 changed files with 23 additions and 0 deletions

View File

@ -5,6 +5,7 @@
home-manager.users.jake.home.stateVersion = "22.11";
imports = [
./git.nix
./tmux/default.nix
];

22
modules/home/git.nix Normal file
View File

@ -0,0 +1,22 @@
{ pkgs, lib, config, ... }:
{
home-manager.users.jake.programs.git = {
enable = true;
extraConfig = {
user = {
email = "jake@hillion.co.uk";
name = "Jake Hillion";
};
pull = {
rebase = true;
};
merge = {
conflictstyle = "diff3";
};
init = {
defaultBranch = "main";
};
};
};
}