aboutsummaryrefslogtreecommitdiff
path: root/modules/games/default.nix
diff options
context:
space:
mode:
authorMax Audron <audron@cocaine.farm>2024-02-21 14:50:28 +0100
committerMax Audron <audron@cocaine.farm>2024-02-21 14:50:28 +0100
commit68e234de17d7c742ba6d4455b7d4c03c28b72db1 (patch)
tree5477a5c545ff097a724a8572972390f705d868f5 /modules/games/default.nix
parentset network manually for ns servers (diff)
add minecraft server and move palworld to games module
Diffstat (limited to 'modules/games/default.nix')
-rw-r--r--modules/games/default.nix26
1 files changed, 26 insertions, 0 deletions
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;
+ };
+ };
}