containers: make all host ports configurable
This commit is contained in:
parent
f2c59bd79b
commit
4c66c73024
4 changed files with 23 additions and 7 deletions
|
@ -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";
|
||||
}
|
||||
];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue