mirror of
https://github.com/anotherhadi/nixy.git
synced 2026-05-20 21:32:33 +02:00
d18d67d86e
Signed-off-by: Hadi <112569860+anotherhadi@users.noreply.github.com>
16 lines
476 B
Nix
16 lines
476 B
Nix
# This file is used to sign git commits using an SSH key.
|
|
{
|
|
# CHANGEME: change this to your own SSH key.
|
|
home.file.".ssh/allowed_signers".text = "* ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIINhWby7lUUXQNKbRu9/UOrGjWDf3fvoAwGHomWv/+lL";
|
|
|
|
programs.git = {
|
|
signing.format = "openpgp";
|
|
settings = {
|
|
commit.gpgsign = true;
|
|
gpg.ssh.allowedSignersFile = "~/.ssh/allowed_signers";
|
|
gpg.format = "ssh";
|
|
user.signingkey = "~/.ssh/key.pub";
|
|
};
|
|
};
|
|
}
|