2024-03-02 22:05:30 +01:00
|
|
|
{inputs, ...}: {
|
2023-07-18 23:11:45 +02:00
|
|
|
flake.nixngConfigurations.minecraft-vanilla = inputs.nixng.nglib.makeSystem {
|
|
|
|
system = "x86_64-linux";
|
|
|
|
name = "nixng-minecraft";
|
2024-07-03 17:39:49 +02:00
|
|
|
nixpkgs = inputs.nixpkgs-stable;
|
2024-03-02 22:05:30 +01:00
|
|
|
config = {
|
|
|
|
pkgs,
|
|
|
|
lib,
|
|
|
|
nglib,
|
|
|
|
...
|
|
|
|
}: {
|
|
|
|
disabledModules = ["${inputs.nixng}/modules/services/minecraft.nix"];
|
|
|
|
imports = [../../../modules/minecraft-forge.nix ../../../modules/minecraft.nix];
|
|
|
|
dumb-init = {
|
|
|
|
enable = true;
|
|
|
|
type.services = {};
|
|
|
|
};
|
2023-07-18 23:11:45 +02:00
|
|
|
|
2024-03-02 22:05:30 +01:00
|
|
|
services.minecraft.vanilla = {
|
|
|
|
enable = true;
|
|
|
|
eulaAccept = true;
|
|
|
|
extraJavaArguments = [
|
|
|
|
"-Xmx1024M"
|
|
|
|
"-Xms1024M"
|
|
|
|
];
|
|
|
|
};
|
|
|
|
};
|
2023-07-18 23:11:45 +02:00
|
|
|
};
|
|
|
|
}
|