mirror of
https://github.com/srid/nixos-config.git
synced 2026-07-16 22:01:33 +08:00
feat(ssh): dedicate work config to separate file
This commit is contained in:
parent
2e7dc80fca
commit
43d4c4372c
3 changed files with 30 additions and 16 deletions
|
|
@ -21,6 +21,7 @@
|
|||
# ./nushell.nix
|
||||
./just.nix
|
||||
# ./powershell.nix
|
||||
./juspay.nix
|
||||
];
|
||||
};
|
||||
common-linux = {
|
||||
|
|
|
|||
27
home/juspay.nix
Normal file
27
home/juspay.nix
Normal 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";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
18
home/ssh.nix
18
home/ssh.nix
|
|
@ -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";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue