home: Add git

This commit is contained in:
Simon Bruder 2020-11-07 15:40:07 +01:00
parent 546060a7b8
commit 5b571bd0c0
No known key found for this signature in database
GPG key ID: 6F03E0000CC5B62F
2 changed files with 39 additions and 0 deletions

View file

@ -32,6 +32,7 @@ in
imports = [
./modules/alacritty.nix
./modules/ankisyncd.nix
./modules/git.nix
./modules/gtk.nix
./modules/htop.nix
./modules/mpd.nix

View file

@ -0,0 +1,38 @@
{
programs.git = {
enable = true;
userName = "Simon Bruder";
userEmail = "simon@sbruder.de";
signing = {
key = "51276B7B829AF24674F2AA716F03E0000CC5B62F";
signByDefault = true;
};
extraConfig = {
core.quotepath = "off";
pull.ff = "only";
};
ignores = [
"*.swp"
".direnv"
"Session.vim"
];
lfs.enable = true;
delta = {
enable = true;
options = {
line-numbers = "true";
side-by-side = "true";
features = "decorations";
syntax-theme = "base16";
decorations = {
commit-decoration-style = "bold yellow box ul";
file-style = "bold yellow ul";
file-decoration-style = "none";
};
};
};
};
}