mirror of
https://github.com/JulienMalka/snowfield.git
synced 2025-04-02 10:10:52 +02:00
35 lines
674 B
Nix
35 lines
674 B
Nix
{ 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";
|
|
};
|
|
|
|
};
|
|
};
|
|
};
|
|
}
|