1
0
Fork 0

git: Sign with SSH key

This commit is contained in:
Daniel Kempkens 2022-01-25 22:21:15 +01:00
parent f9f21c969a
commit a0f44568e8
4 changed files with 28 additions and 4 deletions

View file

@ -1,3 +1,16 @@
[user]
email = "d.kempkens@nedeco.de"
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"

View file

@ -1,3 +1,8 @@
{ config, ... }:
let
signers-directory = "${config.home.homeDirectory}/.ssh/allowed_signers";
in
{
programs.ssh = {
enable = true;
@ -71,4 +76,9 @@
"~/.ssh/config_work"
];
};
home.file."${signers-directory}" = {
source = ../config/ssh/allowed_signers;
recursive = true;
};
}

View file

@ -0,0 +1 @@
d.kempkens@nedeco.de ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAINHOfdNMxQPUyeR0+Eyx+mnw3zTld7ipejlu/FtxZ3+r