containers: make all host ports configurable

This commit is contained in:
steveej 2020-09-14 19:38:36 +02:00
parent f2c59bd79b
commit 4c66c73024
4 changed files with 23 additions and 7 deletions

View file

@ -2,7 +2,10 @@
let
in args // {
in
{ syncthingPort ? 22000
}: args // {
config = { config, pkgs, ... }: {
imports = [
../profiles/containers/configuration.nix
@ -34,7 +37,7 @@ in args // {
forwardPorts = [
{
containerPort = 22000;
hostPort = 22000;
hostPort = syncthingPort;
protocol = "tcp";
}
];