better ssh config

This commit is contained in:
Luj 2023-07-28 13:19:46 +02:00
parent c11c0921da
commit fba56edd2e
Signed by: luj
GPG key ID: 6FC74C847011FD83
2 changed files with 26 additions and 7 deletions

View file

@ -11,18 +11,15 @@ with lib;
config = mkIf cfg.enable {
programs.ssh = {
enable = true;
matchBlocks = {
matchBlocks = lib.mapAttrs
(n: v: { hostname = "${n}.${lib.luj.tld}"; user = v.sshUser; port = v.sshPort; })
lib.luj.machines // {
sas = {
hostname = "sas.eleves.ens.fr";
user = "jmalka";
};
lambda = {
hostname = "lambda.luj";
user = "root";
port = 45;
};
router = {
hostname = "ci.julienmalka.me";
hostname = "vpn.saumon.network";
};
mails = {
hostname = "192.168.0.76";