diff --git a/configuration.nix b/configuration.nix index e8463e7..8c4602c 100644 --- a/configuration.nix +++ b/configuration.nix @@ -119,7 +119,7 @@ # List services that you want to enable: - networking.firewall.allowedTCPPorts = [ 80 443 22 ]; + networking.firewall.allowedTCPPorts = [ 80 443 22 25565 ]; services.nginx = { enable = true; diff --git a/users/arion-compose.nix b/users/arion-compose.nix index 3795c42..cf5a338 100644 --- a/users/arion-compose.nix +++ b/users/arion-compose.nix @@ -3,16 +3,15 @@ project.name = "minecraft"; services = { mc = { - service.image = "itzg/minecraft-server:latest"; + service.image = "itzg/minecraft-server:java17-jdk"; service.volumes = [ "/home/podman/data:/data" ]; - service.ports = [ "25565:25565" ]; + service.dns = [ "8.8.8.8" ]; + service.network_mode = "host"; service.environment = { EULA = "true"; - MOD_PLATFORM = "AUTO_CURSEFORGE"; - # https://stackoverflow.com/questions/49897503/ - CF_API_KEY = "$$2a$$10$$BiefeMHCHbPFjXkIwpHk/.LvfbKaohRF7HcB3PF8oJtVAI/PfMpwe"; # free API key <3 - CF_FORCE_SYNCHRONIZE = "true"; - CF_PAGE_URL = "https://www.curseforge.com/minecraft/modpacks/valhelsia-6/files/5135030"; + TYPE = "FORGE"; + VERSION = "1.20.1"; + FORGE_VERSION = "47.2.20"; MEMORY = "16G"; }; };