{ pkgs, inputs, lib, ... }: let modpack = pkgs.fetchPackwizModpack { url = "file:///${inputs.testing-grounds.modpack}/pack.toml"; packHash = "sha256-+taYj4uroLNxM4Nia3n+5P1Y/g6dzE6Iq13TsZgk4mU="; }; gregpack = pkgs.fetchPackwizModpack { url = "https://raw.githubusercontent.com/GregTechCEu/GregTech-Modern-Community-Pack/refs/heads/main/pack.toml"; packHash = "sha256-SE86gP15H/Aug6vTLmMxHuxF2/+iLmCI/wQlON1xasM="; }; in { imports = [ inputs.nix-minecraft.nixosModules.minecraft-servers ]; nixpkgs.overlays = [ inputs.nix-minecraft.overlay ]; services.minecraft-servers = { enable = true; eula = true; openFirewall = true; servers.testing-grounds = { enable = true; package = inputs.testing-grounds.packages.x86_64-linux.forge-server; symlinks = { "libraries" = inputs.testing-grounds.forge-libraries; "mods" = "${modpack}/mods"; }; serverProperties = { motd = "welcome to testing grounds"; allow-flight = true; }; }; }; networking.firewall.allowedTCPPorts = [ 25865 # autismcraft 25665 # reclamation 25675 # reclamation ]; }