aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--configuration.nix2
-rw-r--r--ssh_config1
2 files changed, 2 insertions, 1 deletions
diff --git a/configuration.nix b/configuration.nix
index 76de0d1..be424f8 100644
--- a/configuration.nix
+++ b/configuration.nix
@@ -259,7 +259,7 @@ in
# Open ports in the firewall.
networking.firewall.allowedTCPPorts = [
- 22 # SSH
+ (builtins.head ({ openssh.ports = [22]; } // node_config.services).openssh.ports)
3900 3901 # Garage (internal RPC traffic)
4646 4647 4648 # Nomad
8500 8300 8301 8302 # Consul
diff --git a/ssh_config b/ssh_config
index 56b96f1..74590ac 100644
--- a/ssh_config
+++ b/ssh_config
@@ -11,3 +11,4 @@ Host cariacou
Host spoutnik
HostName 10.42.0.2
+ Port 220