make ports an attribute binding in case we want to change it later on

This commit is contained in:
tdback 2024-11-12 18:35:52 -05:00
parent bb4e47bacf
commit ecd3143a27

View file

@ -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" ];