nixos-config/home/ssh.nix
Sridhar Ratnakumar 414ad642b2 decouple 1Password
2024-03-26 08:25:23 -04:00

25 lines
552 B
Nix

{ pkgs, lib, ... }:
{
programs.ssh = {
enable = true;
matchBlocks = {
vanjaram = {
hostname = "100.83.79.127";
user = "srid";
forwardAgent = true;
};
biryani = {
hostname = "100.97.32.60";
user = "admin";
forwardAgent = true;
};
# To clone Juspay repos.
# https://developer.1password.com/docs/ssh/agent/advanced/#match-key-with-host
"bitbucket.org" = {
identitiesOnly = true;
identityFile = "~/.ssh/juspay.pub";
};
};
};
}