git: Sign with SSH key
This commit is contained in:
parent
f9f21c969a
commit
a0f44568e8
4 changed files with 28 additions and 4 deletions
|
@ -1,3 +1,16 @@
|
||||||
[user]
|
[user]
|
||||||
email = "d.kempkens@nedeco.de"
|
email = "d.kempkens@nedeco.de"
|
||||||
name = "Daniel Kempkens"
|
name = "Daniel Kempkens"
|
||||||
|
signingKey = "~/.ssh/nedeco_gitlab.pub"
|
||||||
|
|
||||||
|
[commit]
|
||||||
|
gpgsign = true
|
||||||
|
|
||||||
|
[tag]
|
||||||
|
gpgsign = true
|
||||||
|
|
||||||
|
[gpg]
|
||||||
|
format = "ssh"
|
||||||
|
|
||||||
|
[gpg "ssh"]
|
||||||
|
allowedSignersFile = "~/.ssh/allowed_signers/work-nedeco"
|
||||||
|
|
|
@ -1,3 +1,8 @@
|
||||||
|
{ config, ... }:
|
||||||
|
|
||||||
|
let
|
||||||
|
signers-directory = "${config.home.homeDirectory}/.ssh/allowed_signers";
|
||||||
|
in
|
||||||
{
|
{
|
||||||
programs.ssh = {
|
programs.ssh = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
@ -71,4 +76,9 @@
|
||||||
"~/.ssh/config_work"
|
"~/.ssh/config_work"
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
home.file."${signers-directory}" = {
|
||||||
|
source = ../config/ssh/allowed_signers;
|
||||||
|
recursive = true;
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
1
config/ssh/allowed_signers/work-nedeco
Normal file
1
config/ssh/allowed_signers/work-nedeco
Normal file
|
@ -0,0 +1 @@
|
||||||
|
d.kempkens@nedeco.de ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAINHOfdNMxQPUyeR0+Eyx+mnw3zTld7ipejlu/FtxZ3+r
|
Loading…
Reference in a new issue