Much change, kinda broke my git history

This commit is contained in:
Julien Malka 2021-12-22 22:16:48 +01:00
parent 077322deaf
commit 4b0d80d349
13 changed files with 108 additions and 19 deletions

View file

@ -0,0 +1,37 @@
{ 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 = {
newton = {
hostname = "newton.julienmalka.me";
user = "julien";
port = 45;
};
lisa = {
hostname = "2a01:e0a:5f9:9681:5880:c9ff:fe9f:3dfb";
user = "julien";
# port = 45;
};
newton-init = {
hostname = "newton.julienmalka.me";
user = "root";
port = 2222;
};
sas = {
hostname = "sas.eleves.ens.fr";
user = "jmalka";
};
};
};
};
}