From 98f99499ba7ebcda8572316886bc9a575aee132b Mon Sep 17 00:00:00 2001 From: jopejoe1 Date: Wed, 1 May 2024 12:48:01 +0200 Subject: [PATCH] add minecraft server --- common.nix | 1 + systems/flora-mate/default.nix | 20 ++++++++++++++++++++ 2 files changed, 21 insertions(+) diff --git a/common.nix b/common.nix index a6f39ee..4edbb45 100644 --- a/common.nix +++ b/common.nix @@ -106,6 +106,7 @@ "192.168.88.253" = [ self.nixosConfigurations.flora-mate.config.networking.hostName "ap" + "minecraft" ]; "192.168.88.1" = [ "router" diff --git a/systems/flora-mate/default.nix b/systems/flora-mate/default.nix index 1e2e8f6..3d107e4 100644 --- a/systems/flora-mate/default.nix +++ b/systems/flora-mate/default.nix @@ -42,4 +42,24 @@ PASSPHRASE = "VerySecurePassword69123"; }; }; + services.minecraft-server = { + enable = true; + eula = true; + declarative = true; + openFirewall = true; + serverProperties = { + accepts-transfers = true; + difficulty = 3; + enable-command-block = true; + enable-rcon = true; + enable-status = true; + enable-query = true; + enforce-secure-profile = false; + max-players = 10; + motd = "IT3Bili Minecraft server!"; + snooper-enabled = false; + spawn-protection = 0; + "rcon.password" = "AcceseGranted"; + }; + }; }