From 68e234de17d7c742ba6d4455b7d4c03c28b72db1 Mon Sep 17 00:00:00 2001 From: Max Audron Date: Wed, 21 Feb 2024 14:50:28 +0100 Subject: add minecraft server and move palworld to games module --- modules/games/default.nix | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) (limited to 'modules/games/default.nix') diff --git a/modules/games/default.nix b/modules/games/default.nix index 4d701f9..65b750e 100644 --- a/modules/games/default.nix +++ b/modules/games/default.nix @@ -1,6 +1,8 @@ { config, lib, pkgs, ... }: { + imports = [ ./palworld.nix ]; + services.factorio = { enable = true; package = pkgs.unstable.factorio-headless; @@ -19,4 +21,28 @@ hostname = "cocaine.farm xonotic $g_xonoticversion"; }; }; + + services.minecraft-server = { + enable = true; + package = pkgs.unstable.papermc; + eula = true; + + declarative = true; + whitelist = import ./minecraft_whitelist.nix; + serverProperties = { + motd = "Fun for the whole family!"; + + server-ip = "178.63.224.11"; + server-port = 25565; + + enforce-secure-profile = false; + difficulty = "hard"; + enable-rcon = true; + "rcon.password" = builtins.readFile ../../secrets/rcon; + force-gamemode = true; + white-list = true; + level-type = "default"; + spawn-protection = 0; + }; + }; } -- cgit v1.2.3