add signing

This commit is contained in:
Hadi
2025-05-06 11:20:40 +02:00
parent 685f104a67
commit 6a4634bb04
2 changed files with 11 additions and 0 deletions

View File

@@ -0,0 +1,10 @@
_: {
home.file.".ssh/allowed_signers".text =
"* ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIINhWby7lUUXQNKbRu9/UOrGjWDf3fvoAwGHomWv/+lL";
programs.git.extraConfig = {
commit.gpgsign = true;
gpg.ssh.allowedSignersFile = "~/.ssh/allowed_signers";
gpg.format = "ssh";
user.signingkey = "~/.ssh/key.pub";
};
}