feat(ssh): dedicate work config to separate file

This commit is contained in:
Sridhar Ratnakumar 2024-05-15 22:39:18 -04:00
parent 2e7dc80fca
commit 43d4c4372c
3 changed files with 30 additions and 16 deletions

View file

@ -21,6 +21,7 @@
# ./nushell.nix
./just.nix
# ./powershell.nix
./juspay.nix
];
};
common-linux = {

27
home/juspay.nix Normal file
View file

@ -0,0 +1,27 @@
# For Juspay work
{ pkgs, lib, ... }:
{
programs.ssh = {
matchBlocks = {
# Juspay machines (through Tailscale)
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";
};
};
};
}

View file

@ -2,27 +2,13 @@
{
programs.ssh = {
enable = true;
# Note: More defined in juspay.nix
matchBlocks = {
vanjaram = {
hostname = "100.83.79.127";
user = "srid";
forwardAgent = true;
};
biryani = {
hostname = "100.97.32.60";
user = "admin";
forwardAgent = true;
};
immediacy = {
hostname = "65.109.84.215";
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";
};
};
};
}