2022-03-01 22:59:14 +00:00
|
|
|
{
|
2022-03-02 14:28:37 +00:00
|
|
|
programs.git = {
|
|
|
|
enable = true;
|
2022-03-03 16:10:43 +00:00
|
|
|
ignores = [
|
|
|
|
".vscode"
|
|
|
|
"*.sql"
|
|
|
|
"*.sql.gz"
|
|
|
|
"*.sql.zst"
|
2022-10-25 13:28:22 +00:00
|
|
|
".direnv/"
|
2022-03-03 16:10:43 +00:00
|
|
|
];
|
2022-03-02 14:28:37 +00:00
|
|
|
userName = "fleaz";
|
|
|
|
userEmail = "mail@felixbreidenstein.de";
|
2022-03-03 16:10:43 +00:00
|
|
|
signing = {
|
|
|
|
key = "9166FF9DFC1F4637";
|
|
|
|
signByDefault = true;
|
|
|
|
};
|
|
|
|
extraConfig = {
|
2023-04-28 12:16:57 +00:00
|
|
|
"core" = {
|
|
|
|
pager = "less -F -X";
|
|
|
|
};
|
2022-03-03 16:10:43 +00:00
|
|
|
"init" = {
|
|
|
|
defaultBranch = "main";
|
|
|
|
};
|
2022-03-29 14:59:23 +00:00
|
|
|
"pull" = {
|
|
|
|
rebase = "true";
|
|
|
|
};
|
2022-10-25 13:28:22 +00:00
|
|
|
"push" = {
|
|
|
|
autoSetupRemote = "true";
|
|
|
|
};
|
2022-03-03 16:10:43 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
2022-03-02 14:28:37 +00:00
|
|
|
aliases = {
|
2022-10-25 13:28:22 +00:00
|
|
|
# checkout-pull-request from GitHub
|
2022-03-02 14:28:37 +00:00
|
|
|
cpr = "!f() { git fetch origin refs/pull/$1/head && git checkout FETCH_HEAD; }; f";
|
2022-03-01 22:59:14 +00:00
|
|
|
};
|
2022-03-03 16:10:43 +00:00
|
|
|
|
2022-03-02 14:28:37 +00:00
|
|
|
includes = [{
|
|
|
|
condition = "gitdir:~/codemonauts/";
|
|
|
|
contents = {
|
|
|
|
user = {
|
|
|
|
email = "felix@codemonauts.com";
|
|
|
|
name = "Felix Breidenstein";
|
|
|
|
};
|
2022-03-03 16:10:43 +00:00
|
|
|
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";
|
|
|
|
};
|
2022-03-03 16:10:43 +00:00
|
|
|
commit = {
|
|
|
|
gpgSign = false;
|
|
|
|
};
|
2022-03-02 14:28:37 +00:00
|
|
|
};
|
2022-03-16 22:25:08 +00:00
|
|
|
}
|
|
|
|
];
|
2022-03-02 14:28:37 +00:00
|
|
|
};
|
2022-03-01 22:59:14 +00:00
|
|
|
}
|