{ pkgs, inputs, lib, ... }: let modpack = pkgs.fetchPackwizModpack { url = "file:///${inputs.testing-grounds.modpack}/pack.toml"; packHash = "sha256-+taYj4uroLNxM4Nia3n+5P1Y/g6dzE6Iq13TsZgk4mU="; }; reclamation = inputs.reclamation.packages.${pkgs.stdenv.system}; 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 = false; package = pkgs.fabricServers.fabric; symlinks = { "mods" = "${reclamation.modpack}/mods"; "FTBLang" = "${reclamation.modpack}/FTBLang"; "defaultconfigs" = "${reclamation.modpack}/defaultconfigs"; "ressourcepacks" = "${reclamation.modpack}/ressourcepacks"; "config" = "${reclamation.modpack}/config"; "kubejs" = "${reclamation.modpack}/kubejs"; "patchouli_books" = "${reclamation.modpack}/patchouli_books"; "server.dat" = "${reclamation.modpack}/server.dat"; }; serverProperties = { server-port = 43001; motd = "all hail the gorgon v3.14"; 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"; }; serverProperties = { motd = "welcome to testing grounds"; allow-flight = true; }; }; }; }