Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
srid committed Nov 27, 2024
1 parent 60feb47 commit f7c0408
Showing 1 changed file with 0 additions and 38 deletions.
38 changes: 0 additions & 38 deletions modules/home/all/juspay.nix
Original file line number Diff line number Diff line change
@@ -1,45 +1,7 @@
# For Juspay work
let
# I don't care to connect to VPN on my macbook
# So, I'll clone through an office machine
gitCloneThrough = { host, user }:
let
port = 5445;
gitSshRemote = "ssh.bitbucket.juspay.net";
in
{
programs.ssh.matchBlocks = {
${host} = {
inherit user;
dynamicForwards = [{ inherit port; }];
};
/*
${gitSshRemote} = {
user = "git";
proxyCommand = "nc -x localhost:${builtins.toString port} %h %p";
};
*/
};
};
in
{
imports = [
(gitCloneThrough { host = "vanjaram"; user = "srid"; })
];
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" = {
Expand Down

0 comments on commit f7c0408

Please sign in to comment.