hm: set up ssh
This commit is contained in:
parent
f2c8e2d3bf
commit
6c91bbe714
2 changed files with 21 additions and 1 deletions
|
@ -27,6 +27,8 @@
|
|||
set mouse=
|
||||
'';
|
||||
};
|
||||
programs.ssh.controlMaster = "auto";
|
||||
programs.ssh.controlPersist = "10m";
|
||||
|
||||
programs.bash.initExtra = lib.mkAfter ''
|
||||
ssh-add -q -l >/dev/null || ssh-add -c -q
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
{ depot, pkgs, ... }:
|
||||
{ depot, lib, pkgs, ... }:
|
||||
{
|
||||
programs.home-manager.enable = true;
|
||||
|
||||
|
@ -12,6 +12,24 @@
|
|||
VISUAL = "vim";
|
||||
};
|
||||
|
||||
programs.ssh = {
|
||||
enable = true;
|
||||
forwardAgent = true;
|
||||
matchBlocks = let
|
||||
allEventBlocks = (lib.concatStringsSep " " (builtins.map (n: "172.${toString n}.*.*") (lib.range 16 31)));
|
||||
in ({
|
||||
marukuru.port = 20022;
|
||||
sar1.hostname = "81.131.50.219";
|
||||
sar1-mon1 = {
|
||||
user = "eng";
|
||||
hostname = "172.16.0.9";
|
||||
proxyJump = "sar1";
|
||||
};
|
||||
} // (builtins.listToAttrs [
|
||||
{ name = allEventBlocks; value = { proxyJump = "sar1"; }; }
|
||||
]));
|
||||
};
|
||||
|
||||
programs.bash = {
|
||||
enable = true;
|
||||
enableVteIntegration = true;
|
||||
|
|
Loading…
Reference in a new issue