nixfiles/home/sshUSB.nix

12 lines
337 B
Nix
Raw Normal View History

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