nixos-config/users/arion-compose.nix

21 lines
668 B
Nix
Raw Normal View History

2024-03-05 09:16:28 +00:00
{ pkgs, ... }:
{
project.name = "minecraft";
2024-03-05 09:16:28 +00:00
services = {
mc = {
service.image = "itzg/minecraft-server:latest";
service.volumes = [ "${toString ./.}/data:/data" ];
service.ports = [ "25565:25565" ];
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";
MEMORY = "16G";
};
2024-03-05 09:16:28 +00:00
};
};
}