nixos-config/home-manager/modules/git.nix

57 lines
1.1 KiB
Nix
Raw Normal View History

2022-03-01 22:59:14 +00:00
{
2022-03-02 14:28:37 +00:00
programs.git = {
enable = true;
ignores = [
".vscode"
"*.sql"
"*.sql.gz"
"*.sql.zst"
];
2022-03-02 14:28:37 +00:00
userName = "fleaz";
userEmail = "mail@felixbreidenstein.de";
signing = {
key = "9166FF9DFC1F4637";
signByDefault = true;
};
extraConfig = {
"init" = {
defaultBranch = "main";
};
"pull" = {
rebase = "true";
};
};
2022-03-02 14:28:37 +00:00
aliases = {
cpr = "!f() { git fetch origin refs/pull/$1/head && git checkout FETCH_HEAD; }; f";
2022-03-01 22:59:14 +00:00
};
2022-03-02 14:28:37 +00:00
includes = [{
condition = "gitdir:~/codemonauts/";
contents = {
user = {
email = "felix@codemonauts.com";
name = "Felix Breidenstein";
};
commit = {
gpgSign = false;
};
2022-03-01 22:59:14 +00:00
};
2022-03-02 14:28:37 +00:00
}
{
condition = "gitdir:~/kundendaten/";
contents = {
user = {
email = "felix@codemonauts.com";
name = "Felix Breidenstein";
};
commit = {
gpgSign = false;
};
2022-03-02 14:28:37 +00:00
};
}
];
2022-03-02 14:28:37 +00:00
};
2022-03-01 22:59:14 +00:00
}