2024-07-24 14:13:59 +01:00
|
|
|
{self, ...}: let
|
|
|
|
encryptedUSBData = import "${self}/data/drives/encryptedUSB.nix";
|
2023-09-18 03:56:58 +01:00
|
|
|
in {
|
|
|
|
programs.ssh.matchBlocks."*".identityFile = "${encryptedUSBData.sshPrivateKeyPath}";
|
|
|
|
programs.git.extraConfig = {
|
|
|
|
gpg.format = "ssh";
|
|
|
|
commit.gpgsign = "true";
|
|
|
|
tag.gpgsign = "true";
|
|
|
|
user.signingKey = "${encryptedUSBData.sshPrivateKeyPath}";
|
|
|
|
};
|
|
|
|
}
|