nixfiles/home/sshUSB.nix

12 lines
344 B
Nix
Raw Normal View History

2023-09-18 03:56:58 +01:00
{...}: let
2023-09-20 15:46:20 +01:00
encryptedUSBData = import ../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}";
};
}