add ssh and jj
This commit is contained in:
parent
e6522bdb86
commit
9583e816d6
5 changed files with 91 additions and 32 deletions
42
programs/ssh.nix
Normal file
42
programs/ssh.nix
Normal file
|
|
@ -0,0 +1,42 @@
|
|||
inputs@{ machine, ... }: {
|
||||
imports =
|
||||
machine.program {
|
||||
name = "ssh";
|
||||
inherit inputs;
|
||||
requirements = [ "cli" ];
|
||||
home-config = _: {
|
||||
programs.ssh = {
|
||||
enable = true;
|
||||
enableDefaultConfig = false;
|
||||
matchBlocks = {
|
||||
fili = {
|
||||
user = "jana";
|
||||
hostname = "donsz.nl";
|
||||
};
|
||||
icecube = {
|
||||
hostname = "192.168.178.138";
|
||||
proxyJump = "fili";
|
||||
};
|
||||
ragdoll = {
|
||||
hostname = "192.168.178.138";
|
||||
proxyJump = "fili";
|
||||
};
|
||||
|
||||
"*" = {
|
||||
forwardAgent = false;
|
||||
serverAliveInterval = 0;
|
||||
serverAliveCountMax = 3;
|
||||
compression = false;
|
||||
addKeysToAgent = null;
|
||||
hashKnownHosts = false;
|
||||
userKnownHostsFile = "~/.ssh/known_hosts";
|
||||
controlMaster = "no";
|
||||
controlPath = "~/.ssh/master-%r@%n:%p";
|
||||
controlPersist = null;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue