Filter out keys tagged as no-touch-required when choosing a signing key for notgne2

This commit is contained in:
notgne2 2022-12-27 14:43:15 -07:00
parent 1e9a7f032b
commit 809a360285
Signed by: notgne2
SSH Key Fingerprint: SHA256:iSW0TFXEwbewdtLmWZs+/zMwxrpB5SMBjoCVDv9Rd6I

View File

@ -251,7 +251,7 @@ in {
gpg.format = "ssh"; gpg.format = "ssh";
gpg.ssh.defaultKeyCommand = toString (pkgs.writeShellScript "git-ssh-key" '' gpg.ssh.defaultKeyCommand = toString (pkgs.writeShellScript "git-ssh-key" ''
echo -n 'key::' echo -n 'key::'
ssh-add -L ${pkgs.openssh}/bin/ssh-add -L | ${pkgs.gnugrep}/bin/grep -v 'no-touch-required'
''); '');
}; };
enable = true; enable = true;