Files
homelab/hosts/thea/minecraft.nix
Sin Ser'hao 29b632a961
Some checks failed
/ perform flake analysis (push) Successful in 52s
/ build hive configuration (push) Failing after 1m52s
add reclamation server
2026-01-02 15:02:35 +01:00

58 lines
1.2 KiB
Nix

{
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.reclamation}/pack.toml";
packHash = lib.fakeHash;
};
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";
};
serverProperties = {
motd = "welcome to testing grounds";
allow-flight = true;
};
};
};
}