mirror of
https://github.com/JulienMalka/snowfield.git
synced 2025-07-01 23:27:18 +02:00
fix: try to fix ssh connections
This commit is contained in:
parent
ca80c5104f
commit
c0b6de04ae
1 changed files with 5 additions and 3 deletions
|
@ -12,8 +12,8 @@ with lib;
|
||||||
programs.ssh = {
|
programs.ssh = {
|
||||||
enable = true;
|
enable = true;
|
||||||
matchBlocks =
|
matchBlocks =
|
||||||
lib.mapAttrs (n: v: {
|
lib.mapAttrs (_: v: {
|
||||||
hostname = "${n}.${lib.snowfield.${n}.tld}";
|
hostname = if v.ips ? "vpn" then v.ips.vpn.ipv4 else v.ips.public.ipv4;
|
||||||
user = v.sshUser;
|
user = v.sshUser;
|
||||||
port = v.sshPort;
|
port = v.sshPort;
|
||||||
}) lib.snowfield
|
}) lib.snowfield
|
||||||
|
@ -34,7 +34,9 @@ with lib;
|
||||||
hostname = "ssh.enst.fr";
|
hostname = "ssh.enst.fr";
|
||||||
user = "jmalka";
|
user = "jmalka";
|
||||||
};
|
};
|
||||||
|
ferrari = {
|
||||||
|
hostname = "195.154.212.97";
|
||||||
|
};
|
||||||
lame24 = {
|
lame24 = {
|
||||||
hostname = "lame24.enst.fr";
|
hostname = "lame24.enst.fr";
|
||||||
user = "jmalka";
|
user = "jmalka";
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue