From 0b547853c4dac101c691da4e4e79e745a90ef0f2 Mon Sep 17 00:00:00 2001 From: lassulus Date: Sun, 3 Sep 2023 12:07:42 +0200 Subject: l minecraft: use firewall syntax --- lass/2configs/minecraft.nix | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'lass/2configs/minecraft.nix') diff --git a/lass/2configs/minecraft.nix b/lass/2configs/minecraft.nix index 34da3047e..285a4552c 100644 --- a/lass/2configs/minecraft.nix +++ b/lass/2configs/minecraft.nix @@ -8,8 +8,6 @@ in { eula = true; package = unstable.minecraft-server; }; - krebs.iptables.tables.filter.INPUT.rules = [ - { predicate = "-p tcp --dport 25565"; target = "ACCEPT"; } - { predicate = "-p udp --dport 25565"; target = "ACCEPT"; } - ]; + networking.firewall.allowedTCPPorts = [ 25565 ]; + networking.firewall.allowedUDPPorts = [ 25565 ]; } -- cgit v1.2.3 From f55307fd73af235069744dd5155fda0bc73fe613 Mon Sep 17 00:00:00 2001 From: lassulus Date: Thu, 7 Sep 2023 12:26:31 +0200 Subject: lass: migrate away --- lass/2configs/minecraft.nix | 13 ------------- 1 file changed, 13 deletions(-) delete mode 100644 lass/2configs/minecraft.nix (limited to 'lass/2configs/minecraft.nix') diff --git a/lass/2configs/minecraft.nix b/lass/2configs/minecraft.nix deleted file mode 100644 index 285a4552c..000000000 --- a/lass/2configs/minecraft.nix +++ /dev/null @@ -1,13 +0,0 @@ -{ pkgs, ... }: let - - unstable = import { config.allowUnfree = true; }; - -in { - services.minecraft-server = { - enable = true; - eula = true; - package = unstable.minecraft-server; - }; - networking.firewall.allowedTCPPorts = [ 25565 ]; - networking.firewall.allowedUDPPorts = [ 25565 ]; -} -- cgit v1.2.3