nixos/simpcraft: Add mods
All checks were successful
CI / Check, build and cache Nix flake (push) Successful in 23m39s

This commit is contained in:
Jack O'Sullivan 2024-01-05 02:13:15 +00:00
parent e24ac05bb2
commit 066c87d3d6
4 changed files with 19 additions and 5 deletions

View File

@ -173,6 +173,10 @@ rec {
port = 25565;
dst = aa.simpcraft-oci.internal.ipv4.address;
}
# {
# port = 25566;
# dst = aa.simpcraft-staging-oci.internal.ipv4.address;
# }
{
port = 2456;
@ -190,6 +194,12 @@ rec {
dst = aa.waffletail.internal.ipv4.address;
proto = "udp";
}
{
port = 25565;
dst = aa.simpcraft-oci.internal.ipv4.address;
proto = "udp";
}
];
fstrimConfig = {

View File

@ -400,6 +400,7 @@ in
chain routing-udp {
ip6 daddr ${aa.valheim-oci.internal.ipv6.address} udp dport { 2456-2457 } accept
ip6 daddr ${aa.waffletail.internal.ipv6.address} udp dport 41641 accept
ip6 daddr ${aa.simpcraft-oci.internal.ipv6.address} udp dport 25565 accept
return
}
chain filter-routing {

View File

@ -51,6 +51,7 @@ in
}) {
valheim-oci = 2;
simpcraft-oci = 3;
# simpcraft-staging-oci = 4;
};
configuration = { lib, pkgs, modulesPath, config, assignments, allAssignments, ... }:

View File

@ -13,14 +13,14 @@ in
image = "ghcr.io/itzg/minecraft-server:2023.12.2-java17-alpine";
environment = {
TYPE = "paper";
TYPE = "MODRINTH";
EULA = "true";
ENABLE_QUERY = "true";
MOTD = "§4§k----- §9S§ai§bm§cp§dc§er§fa§6f§5t §4§k-----";
ICON = "/ext/icon.png";
DIFFICULTY = "normal";
OVERRIDE_WHITELIST = "true";
EXISTING_WHITELIST_FILE = "SYNCHRONIZE";
WHITELIST = concatStringsSep "," [
op
"dcd2ecb9-2b5e-49cb-9d4f-f5a76162df56" # Elderlypug
@ -33,12 +33,14 @@ in
"f439f64d-91c9-4c74-9ce5-df4d24cd8e05" # hynge_
"d6ec4c91-5da2-44eb-b89d-71dc8fe017a0" # Eefah98
];
EXISTING_OPS_FILE = "SYNCHRONIZE";
OPS = op;
DIFFICULTY = "normal";
SPAWN_PROTECTION = "0";
VIEW_DISTANCE = "20";
MAX_MEMORY = "4G";
MODRINTH_PROJECTS = concatStringsSep "," [ ];
MAX_MEMORY = "6G";
MODRINTH_MODPACK = "https://cdn.modrinth.com/data/CIYf3Hk8/versions/CN6MqSAU/Simpcraft-0.1.0.mrpack";
TZ = "Europe/Dublin";
};