From ecd3143a274aa78407e721cb34942d36c3b27401 Mon Sep 17 00:00:00 2001 From: tdback Date: Tue, 12 Nov 2024 18:35:52 -0500 Subject: [PATCH] make ports an attribute binding in case we want to change it later on --- modules/ssh/default.nix | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/modules/ssh/default.nix b/modules/ssh/default.nix index 3587467..77c0015 100644 --- a/modules/ssh/default.nix +++ b/modules/ssh/default.nix @@ -1,9 +1,12 @@ -{ ... }: +{ lib, ... }: +let + ports = lib.lists.singleton 2222; +in { services.openssh = { enable = true; startWhenNeeded = true; - ports = [ 2222 ]; + ports = ports; openFirewall = true; settings = { AllowUsers = [ "tdback" ];