diff options
author | Kjetil Orbekk <kj@orbekk.com> | 2022-12-01 08:54:17 -0500 |
---|---|---|
committer | Kjetil Orbekk <kj@orbekk.com> | 2022-12-01 08:54:17 -0500 |
commit | a0ea66ddc749e42aaea89eb6b27887e4fe32ad45 (patch) | |
tree | 9af5342611be47ff6b6c65210553c45e532495f9 /config/minecraft.nix | |
parent | b5efaa433c1c6f53413b0443a18c1aea95bd2215 (diff) |
Fix formatting
Diffstat (limited to 'config/minecraft.nix')
-rw-r--r-- | config/minecraft.nix | 8 |
1 files changed, 2 insertions, 6 deletions
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} \ |