{ config, pkgs, lib, ... }:
let
  cfg = config.luj.programs.ssh-client;
in
with lib;
{
  options.luj.programs.ssh-client = {
    enable = mkEnableOption "Enable ssh client";
  };

  config = mkIf cfg.enable {
    programs.ssh = {
      enable = true;
      matchBlocks = {
        sas = {
          hostname = "sas.eleves.ens.fr";
          user = "jmalka";
        };
        lambda = {
          hostname = "lambda.luj";
          user = "root";
          port = 45;
        };
        router = {
          hostname = "ci.julienmalka.me";
        };
        mails = {
          hostname = "192.168.0.76";
          proxyJump = "router";
        };

      };
    };
  };
}