update(git): update git configuration
This commit is contained in:
parent
5d440933cc
commit
a36596fef3
1 changed files with 17 additions and 22 deletions
39
hm/git.nix
39
hm/git.nix
|
|
@ -92,28 +92,18 @@ in
|
||||||
git = {
|
git = {
|
||||||
enable = true;
|
enable = true;
|
||||||
package = pkgs.gitFull;
|
package = pkgs.gitFull;
|
||||||
userName = "Filippo Berto";
|
|
||||||
userEmail = "berto.f@protonmail.com";
|
|
||||||
# signing = {
|
# signing = {
|
||||||
# key = "berto.f@protonmail.com";
|
# key = "berto.f@protonmail.com";
|
||||||
# signByDefault = true;
|
# signByDefault = true;
|
||||||
# };
|
# };
|
||||||
extraConfig = {
|
settings = {
|
||||||
|
user = { name = "Filippo Berto"; email = "berto.f@protonmail.com"; };
|
||||||
"add.interactive".useBuiltin = false;
|
"add.interactive".useBuiltin = false;
|
||||||
branch.sort = "-committerdate";
|
branch.sort = "-committerdate";
|
||||||
column.ui = "auto";
|
column.ui = "auto";
|
||||||
commit.gpgSign = true;
|
commit.gpgSign = true;
|
||||||
core = {
|
core = { editor = "hx"; fsmonitor = true; };
|
||||||
editor = "hx";
|
|
||||||
fsmonitor = true;
|
|
||||||
};
|
|
||||||
credential.helper = "libsecret";
|
credential.helper = "libsecret";
|
||||||
delta = {
|
|
||||||
line-numbers = true;
|
|
||||||
navigate = true;
|
|
||||||
side-by-side = true;
|
|
||||||
wrap-max-lines = "unlimited";
|
|
||||||
};
|
|
||||||
diff = {
|
diff = {
|
||||||
algorithm = "histogram";
|
algorithm = "histogram";
|
||||||
colorMoved = "default";
|
colorMoved = "default";
|
||||||
|
|
@ -127,26 +117,31 @@ in
|
||||||
tool = "vimdiff";
|
tool = "vimdiff";
|
||||||
};
|
};
|
||||||
pull.rebase = true;
|
pull.rebase = true;
|
||||||
rebase = {
|
rebase = { autoStash = true; autoSquash = true; };
|
||||||
autoStash = true;
|
rerere = { enabled = true; autoUpdate = true; };
|
||||||
autoSquash = true;
|
|
||||||
};
|
|
||||||
rerere = {
|
|
||||||
enabled = true;
|
|
||||||
autoUpdate = true;
|
|
||||||
};
|
|
||||||
tag.sort = "version:refname";
|
tag.sort = "version:refname";
|
||||||
user.signingKey = "berto.f@protonmail.com";
|
user.signingKey = "berto.f@protonmail.com";
|
||||||
};
|
};
|
||||||
lfs.enable = true;
|
lfs.enable = true;
|
||||||
delta.enable = true;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
git-cliff.enable = true;
|
git-cliff.enable = true;
|
||||||
|
|
||||||
bash.shellAliases = shellAliases;
|
bash.shellAliases = shellAliases;
|
||||||
zsh.shellAliases = shellAliases;
|
zsh.shellAliases = shellAliases;
|
||||||
|
|
||||||
|
delta = {
|
||||||
|
enable = true;
|
||||||
|
enableGitIntegration = true;
|
||||||
|
options = {
|
||||||
|
line-numbers = true;
|
||||||
|
navigate = true;
|
||||||
|
side-by-side = true;
|
||||||
|
wrap-max-lines = "unlimited";
|
||||||
};
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
home.packages = builtins.attrValues {
|
home.packages = builtins.attrValues {
|
||||||
inherit (pkgs)
|
inherit (pkgs)
|
||||||
gh
|
gh
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue