rename nodes and add runner for gitea instance
This commit is contained in:
33
hosts/thea/minecraft.nix
Normal file
33
hosts/thea/minecraft.nix
Normal file
@@ -0,0 +1,33 @@
|
||||
{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;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user