16 lines
187 B
Nix
16 lines
187 B
Nix
{
|
|
config,
|
|
lib,
|
|
...
|
|
}:
|
|
let
|
|
inherit (config.machine.minecraft-server)
|
|
enable
|
|
port
|
|
;
|
|
in
|
|
with lib; mkIf enable {
|
|
networking.firewall.allowedTCPPorts = [
|
|
port
|
|
];
|
|
}
|