From a0ea66ddc749e42aaea89eb6b27887e4fe32ad45 Mon Sep 17 00:00:00 2001 From: Kjetil Orbekk Date: Thu, 1 Dec 2022 08:54:17 -0500 Subject: Fix formatting --- config/minecraft.nix | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'config/minecraft.nix') diff --git a/config/minecraft.nix b/config/minecraft.nix index 8e6ad0c..9aa7720 100644 --- a/config/minecraft.nix +++ b/config/minecraft.nix @@ -1,12 +1,8 @@ { config, lib, pkgs, ... }: let minecraft-port = 25565; - allowedAddresses = [ - "108.30.16.212" - "24.193.7.0/24" - ]; -in -{ + allowedAddresses = [ "108.30.16.212" "24.193.7.0/24" ]; +in { networking.firewall.extraCommands = lib.concatMapStrings (addr: '' iptables -A nixos-fw -p tcp \ --dport ${toString minecraft-port} \ -- cgit v1.2.3