Add astral autostart

This commit is contained in:
muon 2024-07-21 11:30:47 +00:00
parent 7f0d973b75
commit 1562d57258
2 changed files with 7 additions and 1 deletions

View file

@ -20,6 +20,10 @@ in {
default = "4G";
description = "server detitated wam";
};
autoStart = lib.mkEnableOption {
default = true;
description = "start server on boot";
};
};
config = lib.mkIf config.mods.server.astral.enable {
@ -28,6 +32,7 @@ in {
serverProperties = {
online-mode = true;
};
autoStart = config.mods.server.astral.autoStart;
jvmOpts = (import ./aikar-flags.nix) config.mods.server.astral.memory;
package = pkgs.fabricServers.${serverVersion}.override {
loaderVersion = fabricVersion;