{ pkgs, inputs, lib, ... }: let modpack = pkgs.fetchPackwizModpack { url = "file:///${inputs.testing-grounds.modpack}/pack.toml"; packHash = "sha256-+taYj4uroLNxM4Nia3n+5P1Y/g6dzE6Iq13TsZgk4mU="; }; reclamation = pkgs.fetchPackwizModpack { url = "file:///${inputs.reclamation.modpack}/pack.toml"; packHash = "sha256-IEGFlPqykpE4eBJdehwGMN3SdFRjue9JIZSwm9Lmp1I="; }; in { imports = [ inputs.nix-minecraft.nixosModules.minecraft-servers ]; nixpkgs.overlays = [ inputs.nix-minecraft.overlay ]; services.minecraft-servers = { enable = true; eula = true; openFirewall = true; servers.reclamation = { enable = true; package = pkgs.fabricServers.fabric; symlinks = { "mods" = "${reclamation}/mods"; }; serverProperties = { server-port = 43001; motd = "all hail the gorgon"; allow-flight = 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"; "mods/orphans" = "${inputs.reclamation.orphan_mods}"; }; serverProperties = { motd = "welcome to testing grounds"; allow-flight = true; }; }; }; }