mirror of
https://github.com/JulienMalka/snowfield.git
synced 2025-06-08 02:09:04 +02:00
better ssh config
This commit is contained in:
parent
c11c0921da
commit
fba56edd2e
2 changed files with 26 additions and 7 deletions
|
@ -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";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue