Files
nixos-config/profiles/base/home-manager/git.nix
2025-08-04 22:45:52 +02:00

28 lines
413 B
Nix

{
...
}:
let
name = "Christoph Schmatzler";
in
{
programs.git = {
enable = true;
ignores = [ "*.swp" ];
userName = name;
lfs = {
enable = true;
};
extraConfig = {
init.defaultBranch = "main";
core = {
editor = "vim";
autocrlf = "input";
};
# commit.gpgsign = true;
pull.rebase = true;
rebase.autoStash = true;
};
};
}