From 9b4157d5746de2e62001c0083de0d731b36c6e23 Mon Sep 17 00:00:00 2001 From: Dave Gallant Date: Sat, 3 Dec 2022 16:10:38 -0500 Subject: [PATCH] Add prismlauncher and minecraft-server --- machines/hephaestus/configuration.nix | 17 +++++++++++++++++ packages/linux-desktop.nix | 1 + 2 files changed, 18 insertions(+) diff --git a/machines/hephaestus/configuration.nix b/machines/hephaestus/configuration.nix index 46beb2d..46f0003 100644 --- a/machines/hephaestus/configuration.nix +++ b/machines/hephaestus/configuration.nix @@ -18,6 +18,7 @@ }; firewall = { allowedTCPPorts = [ + 25565 # minecraft 19999 # netdata ]; allowedUDPPorts = [ @@ -31,4 +32,20 @@ services.tailscale.enable = true; services.xserver.videoDrivers = ["amdgpu"]; + + services.minecraft-server = { + enable = false; + eula = true; + declarative = true; + + serverProperties = { + server-port = 25565; + gamemode = "survival"; + motd = "NixOS Minecraft server."; + max-players = 5; + enable-rcon = true; + "rcon.password" = "changeme"; + level-seed = "10292992"; + }; + }; } diff --git a/packages/linux-desktop.nix b/packages/linux-desktop.nix index 39d65bb..33ca2ee 100644 --- a/packages/linux-desktop.nix +++ b/packages/linux-desktop.nix @@ -37,6 +37,7 @@ in { keyleds legendary-gl mailspring + prismlauncher obs-studio pavucontrol podman