29 lines
493 B
Nix
29 lines
493 B
Nix
{ config, ... }:
|
|
let
|
|
account = config.repo.account;
|
|
in
|
|
{
|
|
flake.modules.homeManager.git =
|
|
{
|
|
config,
|
|
...
|
|
}:
|
|
{
|
|
programs.git = {
|
|
enable = true;
|
|
signing.format = "ssh";
|
|
ignores = [
|
|
".claude/"
|
|
".codex"
|
|
];
|
|
settings = {
|
|
init.defaultBranch = "main";
|
|
user = {
|
|
name = account.realName;
|
|
email = account.primaryEmail.address;
|
|
};
|
|
};
|
|
};
|
|
};
|
|
}
|