configuration.nix/home/programs/git.nix

24 lines
460 B
Nix
Raw Normal View History

2023-04-07 19:09:05 +05:30
{ ... }:
let
2023-04-23 19:10:07 +05:30
user = (import ../../secrets.nix).users;
2023-04-07 19:09:05 +05:30
in
{
programs.git = {
enable = true;
diff-so-fancy = {
enable = true;
};
userEmail = user.primary.emailAddress;
userName = user.primary.realName;
signing = {
key = user.primary.signingKey;
signByDefault = true;
};
extraConfig = {
init.defaultBranch = "main";
push.autoSetupRemote = true;
};
ignores = [ "/.nix" "/.direnv" ];
};
}