diff options
| author | Alexander Kassouni <alex@kassouni.net> | 2026-09-27 19:11:40 -0700 |
|---|---|---|
| committer | Alexander Kassouni <alex@kassouni.net> | 2026-09-27 19:11:40 -0700 |
| commit | 17e4cb65f02fbc6e167650dfedf00c6ab4c83de2 (patch) | |
| tree | d976a3400328923189b399dfcea5fbcc1b7619d5 /minecraft.nix | |
| parent | 84900c2ccec76fac6f7d8e0cec08dcccb7965314 (diff) | |
rcon
Diffstat (limited to 'minecraft.nix')
| -rw-r--r-- | minecraft.nix | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/minecraft.nix b/minecraft.nix index 8085d8d..8146b30 100644 --- a/minecraft.nix +++ b/minecraft.nix @@ -8,6 +8,8 @@ in { nixpkgs.config.allowUnfreePredicate = allowMinecraft; + environment.systemPackages = [ pkgs.mcrcon ]; + services.minecraft-server = { enable = true; package = unstable.minecraft-server; @@ -24,6 +26,10 @@ in { gamemode = "survival"; max-players = 5; white-list = true; + + enable-rcon = true; + "rcon.port" = 25575; + "rcon.password" = "password"; }; jvmOpts = "-Xms4096M -Xmx4096M"; }; |