42 lines
1.1 KiB
Nix
42 lines
1.1 KiB
Nix
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;
|
|
};
|
|
};
|
|
};
|
|
};
|
|
}
|
|
;
|
|
}
|