2024-04-13 14:26:07 +02:00
|
|
|
{
|
|
|
|
config,
|
|
|
|
mkSecret,
|
|
|
|
...
|
|
|
|
}: {
|
|
|
|
age.secrets = mkSecret "minecraftEnv" {};
|
|
|
|
|
2024-04-04 21:59:47 +02:00
|
|
|
services.frp = {
|
|
|
|
enable = true;
|
|
|
|
role = "client";
|
|
|
|
settings = {
|
|
|
|
serverAddr = "49.13.148.129";
|
|
|
|
serverPort = 7000;
|
2024-04-02 20:53:12 +02:00
|
|
|
|
2024-04-04 21:59:47 +02:00
|
|
|
proxies = [
|
|
|
|
{
|
|
|
|
name = "ragnamod7";
|
2024-04-02 20:53:12 +02:00
|
|
|
type = "tcp";
|
2024-04-04 21:59:47 +02:00
|
|
|
localIp = "127.0.0.1";
|
|
|
|
localPort = 25566;
|
|
|
|
remotePort = 6001;
|
|
|
|
}
|
|
|
|
];
|
2024-04-02 20:53:12 +02:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2024-04-14 04:10:12 +02:00
|
|
|
virtualisation.oci-containers.backend = "docker";
|
2024-04-02 20:53:12 +02:00
|
|
|
virtualisation.oci-containers.containers = {
|
|
|
|
"ragnamod7" = {
|
|
|
|
image = "itzg/minecraft-server";
|
|
|
|
ports = ["25566:25565"];
|
|
|
|
volumes = [
|
|
|
|
"/data/ragnamod7:/data"
|
|
|
|
"/data/downloads:/downloads"
|
|
|
|
];
|
|
|
|
environmentFiles = [
|
|
|
|
config.age.secrets.minecraftEnv.path
|
|
|
|
];
|
|
|
|
environment = {
|
|
|
|
EULA = "true";
|
2024-04-04 21:59:47 +02:00
|
|
|
MEMORY = "10G";
|
2024-04-02 20:53:12 +02:00
|
|
|
USE_AIKAR_FLAGS = "true";
|
|
|
|
TYPE = "AUTO_CURSEFORGE";
|
|
|
|
CF_SLUG = "ragnamod-vii";
|
|
|
|
CF_FILE_ID = "5171286";
|
2024-04-14 04:10:12 +02:00
|
|
|
CF_EXCLUDE_MODS = "314904";
|
|
|
|
CF_IGNORE_MISSING_FILES = "mods/ftbbackups2-forge-1.18.2-1.0.23.jar";
|
2024-04-02 20:53:12 +02:00
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|