diff --git a/common/shell.nix b/common/shell.nix index f439873..134c8a3 100644 --- a/common/shell.nix +++ b/common/shell.nix @@ -11,6 +11,7 @@ fd htop killall + nettools podman-compose podman-tui ripgrep diff --git a/host/roam/services.nix b/host/roam/services.nix index a78ce18..ab3761b 100644 --- a/host/roam/services.nix +++ b/host/roam/services.nix @@ -1,5 +1,6 @@ { var, + pkgs, config, secrets, ... @@ -32,10 +33,27 @@ enable = true; settings.PasswordAuthentication = false; }; + + minecraft-server = { + enable = true; + package = pkgs.papermcServers.papermc-1_21_9; + eula = true; + declarative = true; + serverProperties = { + level-seed = "hd"; + difficulty = 3; + spawn-protection = 0; + server-ip = "0.0.0.0"; + }; + jvmOpts = "-Xms2048M -Xmx4096M"; + }; }; networking.firewall = { enable = true; + interfaces."wg0" = { + allowedTCPPorts = [ 25565 ]; + }; allowedTCPPorts = [ 80 443 diff --git a/host/solo/default.nix b/host/solo/default.nix index 683cb57..8fde622 100644 --- a/host/solo/default.nix +++ b/host/solo/default.nix @@ -68,6 +68,10 @@ ''; }; + environment.systemPackages = with pkgs; [ + prismlauncher + ]; + # ====== DON'T CHANGE ====== system.stateVersion = "25.05"; }