dotfiles/nixng/containers/minecraft/vanilla/default.nix

30 lines
703 B
Nix
Raw Normal View History

{inputs, ...}: {
flake.nixngConfigurations.minecraft-vanilla = inputs.nixng.nglib.makeSystem {
system = "x86_64-linux";
name = "nixng-minecraft";
nixpkgs = inputs.nixpkgs-stable;
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 = {};
};
services.minecraft.vanilla = {
enable = true;
eulaAccept = true;
extraJavaArguments = [
"-Xmx1024M"
"-Xms1024M"
];
};
};
};
}