aboutsummaryrefslogtreecommitdiff
path: root/configuration.nix
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2021-11-18 16:13:28 +0100
committerAlex Auvolat <alex@adnab.me>2021-11-18 16:13:28 +0100
commit777896a434d6d7ac603557546b2aa0525de62966 (patch)
treecdf00b446398975447745254977a12ec6b482f65 /configuration.nix
parent9eab23db4cad2374e301624b0cf5ba8f3d5a933e (diff)
downloadnixcfg-777896a434d6d7ac603557546b2aa0525de62966.tar.gz
nixcfg-777896a434d6d7ac603557546b2aa0525de62966.zip
add correct ssh port to firewall
Diffstat (limited to 'configuration.nix')
-rw-r--r--configuration.nix2
1 files changed, 1 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