Files
garandos/modules/home/git.nix
2025-10-23 00:33:04 +02:00

24 lines
481 B
Nix

{ host, ... }:
let
inherit (import ../../hosts/${host}/variables.nix) gitUsername gitEmail;
in
{
programs.git = {
enable = true;
settings = {
user = {
name = "${gitUsername}";
email = "${gitEmail}";
};
push.default = "simple";
credential.helper = "cache --timeout=7200";
init.defaultBranch = "main";
log = {
decorate = "full";
date = "iso";
};
merge.conflictStyle = "diff3";
};
};
}