make ports an attribute binding in case we want to change it later on
This commit is contained in:
parent
bb4e47bacf
commit
ecd3143a27
1 changed files with 5 additions and 2 deletions
|
@ -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" ];
|
||||
|
|
Loading…
Reference in a new issue