snowfield/home-manager-modules/ssh-client/default.nix
2023-06-10 23:51:49 +02:00

27 lines
503 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;
};
};
};
};
}