2021-07-29 11:31:21 +02:00
|
|
|
{ config, lib, ... }:
|
|
|
|
let
|
|
|
|
cfg = config.my.home.ssh;
|
|
|
|
in
|
|
|
|
{
|
|
|
|
options.my.home.ssh = with lib; {
|
|
|
|
enable = (mkEnableOption "ssh configuration") // { default = true; };
|
|
|
|
};
|
|
|
|
|
|
|
|
config = lib.mkIf cfg.enable {
|
|
|
|
programs.ssh = {
|
|
|
|
enable = true;
|
|
|
|
|
|
|
|
matchBlocks = {
|
|
|
|
poseidon = {
|
|
|
|
hostname = "poseidon.alarsyo.net";
|
|
|
|
};
|
2021-08-01 13:33:21 +02:00
|
|
|
|
|
|
|
"*.lrde.epita.fr" = {
|
|
|
|
user = "amartin";
|
|
|
|
};
|
|
|
|
|
|
|
|
lrde-proxyjump = {
|
|
|
|
host = "*.lrde.epita.fr !ssh.lrde.epita.fr";
|
|
|
|
proxyJump = "ssh.lrde.epita.fr";
|
|
|
|
};
|
2021-07-29 11:31:21 +02:00
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|