mirror of
https://git.sr.ht/~magic_rb/dotfiles
synced 2024-12-12 09:51:59 +01:00
28 lines
748 B
Nix
28 lines
748 B
Nix
|
{ inputs, ... }:
|
||
|
{
|
||
|
flake.nixngConfigurations.minecraft-vanilla = inputs.nixng.nglib.makeSystem {
|
||
|
system = "x86_64-linux";
|
||
|
name = "nixng-minecraft";
|
||
|
inherit (inputs) nixpkgs;
|
||
|
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"
|
||
|
];
|
||
|
};
|
||
|
};
|
||
|
};
|
||
|
}
|