nixos/users/malte/git.nix
Malte Tammena 9bada411db Move [marie|malte] -> /users/[marie|malte]
To prepare for an addiotional /users/modules
which can be shared between users.
2022-01-13 12:08:39 +01:00

35 lines
843 B
Nix

{ ... }:
let conf = import ./conf.nix;
in {
programs.git = {
enable = true;
userEmail = "malte.tammena@pm.me";
userName = "Malte Tammena";
signing.key = "BCE9E4BF632E7CED";
includes = [{ contents = { diff.colorMoved = "default"; }; }];
extraConfig = {
pull = { rebase = true; };
init = { defaultBranch = "main"; };
};
delta = {
enable = true;
options = {
syntax-theme = "gruvbox-dark";
navigate = true;
minus-style = "normal '#372c29'";
plus-style = "syntax '#302f29'";
file-style = "bold yellow";
file-decoration-style = "blue ul bold";
hunk-header-style = "line-number syntax file bold";
hunk-header-file-style = "dim";
hunk-header-decoration-style = "";
line-numbers = true;
};
};
};
}