Closed grdryn closed 1 year ago
TIL, it seems I was wrong and you actually can sign with an SSH key since version 2.34! I'll close this issue as it doesn't make sense now.
Just add to programs.git in user.nix the following:
signing = {
key = lib.mkForce "your gpg key id";
signByDefault = lib.mkForce true;
};
extraConfig = {
gpg.format = lib.mkForce "openpgp";
};
and add lib to imports at the beginning of the file, of course.
Describe the bug
user.ssh_private_key_file
property is used to populate the Git config'suser.signingKey
field, when that should be a GPG key rather than an SSH key.The Git docs for this config property only mention using a GPG key, not an SSH key.
Is an SSH key path a valid value for this?
To Reproduce
ssh_private_key_file: ~/.ssh/id_rsa
for a user in the fleek configfleek apply
cat .config/git/config
and see thatuser.signingKey
is set to that valueExpected behavior I might be misunderstanding or missing how an SSH key path is a valid value for this Git config property. If not, then the behaviour I'd expect is that a GPG key ID is used for this rather than a path to an SSH key on disk.
Environment