2021-12-12 22:31:33 +01:00
|
|
|
{ nglib, nixpkgs }:
|
|
|
|
nglib.makeSystem {
|
|
|
|
system = "x86_64-linux";
|
|
|
|
name = "nixng-minecraft";
|
|
|
|
inherit nixpkgs;
|
|
|
|
config = ({ pkgs, config, nglib, ... }:
|
|
|
|
with pkgs.lib;
|
|
|
|
{
|
|
|
|
config = {
|
|
|
|
dumb-init = {
|
|
|
|
enable = true;
|
|
|
|
type.services = { };
|
|
|
|
};
|
|
|
|
init.services.minecraft = {
|
|
|
|
shutdownOnExit = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
services.minecraft = {
|
|
|
|
enable = true;
|
|
|
|
eulaAccept = true;
|
|
|
|
|
|
|
|
forgeZipFile = builtins.fetchurl {
|
|
|
|
url = "https://media.forgecdn.net/files/3551/162/SIMPLE-SERVER-FILES-1.8.12.zip";
|
|
|
|
sha256 = "sha256:16w4874vbc8zab6czixmx62i5hxfv1zkjcbfz9djmhwwa8inw02l";
|
|
|
|
};
|
2022-10-08 01:27:40 +02:00
|
|
|
forgeFetchedHash = "sha256-bB1DjKPQMY+9eq/REGfDQUiDF1I6DlErtN0HTljGFYQ=";
|
2021-12-12 22:31:33 +01:00
|
|
|
|
|
|
|
forgeConfigOverrides = {};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
});
|
|
|
|
}
|