29 lines
689 B
Nix
29 lines
689 B
Nix
{
|
|
pkgs,
|
|
nixpkgs,
|
|
...
|
|
}: {
|
|
nixpkgs.config.allowUnfree = true;
|
|
services.minecraft-servers = {
|
|
enable = true;
|
|
eula = true;
|
|
openFirewall = true;
|
|
servers.fabric = {
|
|
enable = true;
|
|
package = pkgs.fabricServers.fabric-1_21_1.override {
|
|
loaderVersion = "0.16.10";
|
|
};
|
|
symlinks = {
|
|
mods = pkgs.linkFarmFromDrvs "mods" (
|
|
builtins.attrValues {
|
|
Chunky = pkgs.fetchurl {
|
|
url = "https://cdn.modrinth.com/data/fALzjamp/versions/RVFHfo1D/Chunky-Fabric-1.4.23.jar";
|
|
sha256 = "sha256-NBKxcCR93nNR4JRdhX5xO+32+uBaswCqdNBv+94MoH4=";
|
|
};
|
|
}
|
|
);
|
|
};
|
|
};
|
|
};
|
|
}
|