mirror of
https://github.com/Gerg-L/nixos.git
synced 2025-12-10 00:43:56 -05:00
add ssh-agent
make git commit signing add key set sudo timout to 1m
This commit is contained in:
parent
264bae45fe
commit
87829596b6
3 changed files with 18 additions and 2 deletions
|
|
@ -8,7 +8,6 @@ _:
|
|||
user = {
|
||||
name = "Gerg-L";
|
||||
email = "GregLeyda@proton.me";
|
||||
signingkey = "~/.ssh/id_ed25519.pub";
|
||||
};
|
||||
init = {
|
||||
defaultBranch = "master";
|
||||
|
|
@ -18,7 +17,15 @@ _:
|
|||
};
|
||||
advice.addIgnoredFile = false;
|
||||
core.hooksPath = ".githooks";
|
||||
gpg.format = "ssh";
|
||||
gpg = {
|
||||
format = "ssh";
|
||||
ssh.defaultKeyCommand = pkgs.writeShellScript "git_key" ''
|
||||
if ssh-add -L | grep -vq '${config.local.keys.gerg_gerg-desktop}'; then
|
||||
ssh-add -t 1m ~/.ssh/id_ed25519
|
||||
fi
|
||||
echo 'key::${config.local.keys.gerg_gerg-desktop}'
|
||||
'';
|
||||
};
|
||||
push.gpgsign = "if-asked";
|
||||
commit.gpgsign = true;
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue