feat: add initial config
This commit is contained in:
commit
fb98563bb6
26 changed files with 576 additions and 0 deletions
10
validation/tunnel_ports.nix
Normal file
10
validation/tunnel_ports.nix
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
let
|
||||
net = import ../config/network.nix;
|
||||
allowedPorts = net.tunnel.allowedPorts;
|
||||
in
|
||||
{
|
||||
inherit allowedPorts;
|
||||
|
||||
isAllowedTunnelPort = port:
|
||||
builtins.isInt port && builtins.elem port allowedPorts;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue