34 lines
812 B
Nix
34 lines
812 B
Nix
{pkgs, inputs, ...}:
|
|
let
|
|
modpack = pkgs.fetchPackwizModpack {
|
|
url = "file:///${inputs.testing-grounds.modpack}/pack.toml";
|
|
packHash = "sha256-+taYj4uroLNxM4Nia3n+5P1Y/g6dzE6Iq13TsZgk4mU=";
|
|
};
|
|
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;
|
|
};
|
|
};
|
|
};
|
|
}
|