2022-08-23 21:33:04 +00:00
|
|
|
{ pkgs, ... }:
|
2021-12-30 21:33:41 +00:00
|
|
|
|
2021-12-06 22:35:29 +00:00
|
|
|
{
|
2023-01-28 19:17:25 +00:00
|
|
|
home.packages = with pkgs; [
|
|
|
|
git-absorb
|
|
|
|
git-crypt
|
|
|
|
];
|
2022-07-30 20:44:28 +00:00
|
|
|
|
2021-12-06 22:35:29 +00:00
|
|
|
programs.git = {
|
|
|
|
enable = true;
|
|
|
|
lfs.enable = true;
|
|
|
|
|
2022-04-05 20:03:38 +00:00
|
|
|
difftastic = {
|
|
|
|
enable = true;
|
|
|
|
};
|
|
|
|
|
2021-12-06 22:35:29 +00:00
|
|
|
userName = "Daniel Kempkens";
|
|
|
|
userEmail = "daniel+git@kempkens.io";
|
|
|
|
|
|
|
|
aliases = {
|
|
|
|
lg = "log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative";
|
|
|
|
};
|
|
|
|
|
|
|
|
extraConfig = {
|
|
|
|
core = {
|
|
|
|
editor = "nvim";
|
|
|
|
whitespace = "trailing-space,space-before-tab";
|
|
|
|
autocrlf = "input";
|
|
|
|
};
|
|
|
|
|
|
|
|
pull = {
|
|
|
|
rebase = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
push = {
|
|
|
|
default = "simple";
|
|
|
|
};
|
|
|
|
|
|
|
|
apply = {
|
|
|
|
whitespace = "fix";
|
|
|
|
};
|
|
|
|
|
|
|
|
rerere = {
|
|
|
|
enabled = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
color = {
|
|
|
|
ui = "auto";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
ignores = [
|
|
|
|
"*~"
|
|
|
|
"*.swp"
|
2022-01-10 11:28:37 +00:00
|
|
|
".direnv/"
|
2021-12-06 22:35:29 +00:00
|
|
|
".DS_Store"
|
|
|
|
];
|
|
|
|
|
2021-12-30 21:33:41 +00:00
|
|
|
includes = [
|
2022-08-23 21:33:04 +00:00
|
|
|
# Private
|
2023-09-11 22:05:25 +00:00
|
|
|
{
|
|
|
|
condition = "hasconfig:remote.*.url:gitea@git.kempkens.io:*/**";
|
|
|
|
contents = {
|
|
|
|
user = {
|
|
|
|
signingKey = "~/.ssh/GitHub.pub";
|
|
|
|
};
|
|
|
|
|
|
|
|
commit = {
|
|
|
|
gpgSign = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
tag = {
|
|
|
|
gpgSign = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
gpg = {
|
|
|
|
format = "ssh";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
2021-12-30 21:33:41 +00:00
|
|
|
{
|
2022-08-23 21:33:04 +00:00
|
|
|
condition = "hasconfig:remote.*.url:git@github.com:*/**";
|
|
|
|
contents = {
|
|
|
|
user = {
|
|
|
|
signingKey = "~/.ssh/GitHub.pub";
|
|
|
|
};
|
|
|
|
|
|
|
|
commit = {
|
|
|
|
gpgSign = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
tag = {
|
|
|
|
gpgSign = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
gpg = {
|
|
|
|
format = "ssh";
|
|
|
|
};
|
|
|
|
};
|
2021-12-30 21:33:41 +00:00
|
|
|
}
|
2022-01-01 00:06:30 +00:00
|
|
|
|
2022-08-23 21:33:04 +00:00
|
|
|
# Work
|
2022-01-01 00:06:30 +00:00
|
|
|
{
|
2022-08-23 21:33:04 +00:00
|
|
|
condition = "hasconfig:remote.*.url:git@git.app.nedeco.de:*/**";
|
|
|
|
contents = {
|
|
|
|
user = {
|
|
|
|
email = "d.kempkens@nedeco.de";
|
|
|
|
name = "Daniel Kempkens";
|
|
|
|
signingKey = "~/.ssh/nedeco_gitlab.pub";
|
|
|
|
};
|
|
|
|
|
|
|
|
commit = {
|
|
|
|
gpgSign = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
tag = {
|
|
|
|
gpgSign = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
gpg = {
|
|
|
|
format = "ssh";
|
|
|
|
};
|
|
|
|
|
|
|
|
"gpg \"ssh\"" = {
|
|
|
|
allowedSignersFile = "~/.ssh/allowed_signers/work-nedeco";
|
|
|
|
};
|
|
|
|
};
|
2022-01-01 00:06:30 +00:00
|
|
|
}
|
2021-12-30 21:33:41 +00:00
|
|
|
];
|
2021-12-06 22:35:29 +00:00
|
|
|
};
|
2021-12-30 21:33:41 +00:00
|
|
|
|
2022-04-14 14:39:13 +00:00
|
|
|
home.sessionVariables.GIT_CEILING_DIRECTORIES = "/Users";
|
2021-12-06 22:35:29 +00:00
|
|
|
}
|