feat: setup git ssh signing
This commit is contained in:
+5
-7
@@ -1,10 +1,13 @@
|
||||
{ pkgs, ... }:
|
||||
|
||||
{
|
||||
home.packages = [ pkgs.delta ];
|
||||
|
||||
programs.git = {
|
||||
enable = true;
|
||||
signing = {
|
||||
format = "ssh";
|
||||
key = "~/.ssh/id_signing_git";
|
||||
signByDefault = true;
|
||||
};
|
||||
settings = {
|
||||
user.name = "Alex Maldonado";
|
||||
user.email = "alex@scient.ing";
|
||||
@@ -12,19 +15,15 @@
|
||||
core.editor = "hx";
|
||||
core.pager = "delta";
|
||||
pull.rebase = true;
|
||||
|
||||
delta = {
|
||||
navigate = true;
|
||||
side-by-side = true;
|
||||
line-numbers = true;
|
||||
};
|
||||
|
||||
interactive.diffFilter = "delta --color-only";
|
||||
|
||||
merge.conflictstyle = "zdiff3";
|
||||
diff.algorithm = "histogram";
|
||||
diff.colorMoved = "default";
|
||||
|
||||
push.autoSetupRemote = true;
|
||||
push.default = "simple";
|
||||
fetch.prune = true;
|
||||
@@ -32,7 +31,6 @@
|
||||
help.autocorrect = "prompt";
|
||||
branch.sort = "-committerdate";
|
||||
column.ui = "auto";
|
||||
|
||||
transfer.fsckObjects = true;
|
||||
};
|
||||
lfs.enable = true;
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
hostname = "git.scient.ing";
|
||||
port = 22;
|
||||
user = "git";
|
||||
identityFile = "~/.ssh/id_scienting_gitea";
|
||||
identityFile = "~/.ssh/id_scienting_git";
|
||||
};
|
||||
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user