From 0d8536ae8ff4498064620e8f59f1747c58ecccc5 Mon Sep 17 00:00:00 2001 From: Paul-Henri Froidmont Date: Tue, 22 Feb 2022 18:47:38 +0100 Subject: [PATCH] Add minecraft server --- profiles/storage.nix | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/profiles/storage.nix b/profiles/storage.nix index 945a851..a70ce45 100644 --- a/profiles/storage.nix +++ b/profiles/storage.nix @@ -64,4 +64,17 @@ check host webmail with address webmail.banditlair.com if failed port 443 protocol https with timeout 20 seconds then alert ''; + + + nixpkgs.config.allowUnfree = true; + services.minecraft-server = { + enable = true; + eula = true; + openFirewall = true; + declarative = true; + serverProperties = { + online-mode = false; + force-gamemode = true; + }; + }; }