Compare commits

..

No commits in common. "9b2f1eee9efa2e756e67e6da2849d761f6f76495" and "e3f35fbc13ac8be2147142041b461f5324331217" have entirely different histories.

2 changed files with 4 additions and 123 deletions

View file

@ -105,9 +105,8 @@ in {
online-mode = true; online-mode = true;
white-list = false; white-list = false;
spawn-protection = 0; spawn-protection = 0;
view-distance = 17; view-distance = 16;
simulation-distance = 11; simulation-distance = 10;
enforce-secure-profile = false;
enable-command-block = false; enable-command-block = false;
enable-rcon = false; enable-rcon = false;
level-type = "terralith:amplified_large_biomes"; level-type = "terralith:amplified_large_biomes";
@ -123,10 +122,6 @@ in {
}; };
}; };
## Add mods by fetching them from Modrinth and linking them into the server's mods directory.
# Command to fetch and get the SHA512 hash of a mod file:
# curl -sL "URL-HERE" | sha512sum | cut -d ' ' -f 1
symlinks = { symlinks = {
mods = pkgs.linkFarmFromDrvs "mods" ( mods = pkgs.linkFarmFromDrvs "mods" (
builtins.attrValues { builtins.attrValues {
@ -250,134 +245,20 @@ in {
sha512 = "aae816d98e2233167602c053becb43ffb6880451296fab2f3c6a6cd4c8bdc8208955d73e1089f9acdd8c1dccee7835c0b33fc42413ab317d9a9feee7b29de1af"; sha512 = "aae816d98e2233167602c053becb43ffb6880451296fab2f3c6a6cd4c8bdc8208955d73e1089f9acdd8c1dccee7835c0b33fc42413ab317d9a9feee7b29de1af";
}; };
TrueEnding = pkgs.fetchurl {
url = "https://cdn.modrinth.com/data/MCnBYP0b/versions/BWvn4Jtr/tru.e-ending-1.1.4d.jar";
sha512 = "fc1f69d77ec073ecafe5df9dbfff97fa633be42bdf4b5fb8325fe55a6219db9cdb48db0b73ae4b110c667e2fcc37c7c5721c377a2f165bbff56bc612daa37432";
};
ArchitecturyAPI = pkgs.fetchurl {
url = "https://cdn.modrinth.com/data/lhGA9TYQ/versions/uNdfrcQ8/architectury-19.0.1-fabric.jar";
sha512 = "7ca532844a0ed3d35e8515e13d1e84f8eadfceaae93281b79ad6b4dac253f4634e3dfcc7592f9543871dec117e1a3092c196ba5eae33735162de223be19dc4ad";
};
NeoEnchantPlus = pkgs.fetchurl {
url = "https://cdn.modrinth.com/data/BynmO8IO/versions/R942LDop/NeoEnchant-5.14.0.jar";
sha512 = "1e9fbfef03f1884995959364c28b2004ffd9c04094e46ceb5c306023e2b0ca1c19365f97092a1fa9383a6e72c2cd47160993cfd7d2c50b15ff5c1bc1e1e33cac";
};
CustomBiomeSapling = pkgs.fetchurl {
url = "https://cdn.modrinth.com/data/CYGkXnUb/versions/jyLDOcvy/terralith-biome-saplings-1.1.6.jar";
sha512 = "948b1e4ced7ea15a21bc7af78feebc32e31a23d5619bfff8c4efa6b9560e402c11e11bb5ba238d8a2940b20cad5d32adb5cc733c2c51b2949f6b5c962295a524";
};
BeyondEnchant = pkgs.fetchurl {
url = "https://cdn.modrinth.com/data/t2pMCVgG/versions/B5Eitclf/BeyondEnchant-1.7.0.jar";
sha512 = "f002e5ea5a569602851ca3bd12170253503f7afb741f7d9c47f908bc6fe25f842632a7e032e20adba7d6258dee1925a619279db33125493c1c5904957ecc3bdd";
};
UnderwaterEnchant = pkgs.fetchurl {
url = "https://cdn.modrinth.com/data/e8JtTY4h/versions/mWHa1dMI/underwaterenchanting-1.21.11-2.9.jar";
sha512 = "b7c6ab6d257f9295c21600c512860f5dda5c49f46bd0102c555305d0e3bf5b87273cffd5acbc68ff0170a8068a40ac54b114b2137f43de63414049b158544c0f";
};
AddCollective = pkgs.fetchurl {
url = "https://cdn.modrinth.com/data/e0M1UDsY/versions/T8rv7kwo/collective-1.21.11-8.13.jar";
sha512 = "af145a48ac89346c7b1ffa8c44400a91a9908e4d1df0f6f1a603ff045b1fd82d9aa041aea27a682c196b266c0daf84cb5b7b8d83b07ee53e2bc1a5c210d19a1b";
};
FastBackups = pkgs.fetchurl {
url = "https://cdn.modrinth.com/data/ZHKrK8Rp/versions/yqaOm9Fj/fastback-0.30.0%2B1.21.11-fabric.jar";
sha512 = "2e000940838b79990818e5e9e97fd4326285f516c3bd761b0d8d6d560bc3a289d9b409b49b0adda0a7013da029ccdd5eef2c5299f98fcf891c1c2ea19bcaf639";
};
DatapackInjector = pkgs.fetchurl {
url = "https://cdn.modrinth.com/data/9nFfpUyI/versions/YOktbaoF/datapack-injector-fabric-1.0.0%2B1.21.11.jar";
sha512 = "174308e26bb4d22371f01204cf5e55a95914005f63eb8562e8f859e5da6d6a095fe3d9e634af0243893e2d2fbbbb2704c901d093422b92a28c7fd360fed0abda";
};
Peek = pkgs.fetchurl {
url = "https://cdn.modrinth.com/data/TnOXNf5e/versions/dWLOrrLE/peek-fabric-1.21.11-1.4.9.jar";
sha512 = "c62fbb5af2a5146fbe8cbf111cd31fa02bbf97f2334597f190694286371174f15fa571d81e33d9372cf4ec0062bae3543722c111f3e4f1edadfc672cf412c82a";
};
Spark = pkgs.fetchurl {
url = "https://cdn.modrinth.com/data/l6YH9Als/versions/gonLOAU1/spark-1.10.170-fabric.jar";
sha512 = "7460ac92a1241f373238b7afe3c9e8dc67101d3cc6d95322f9a86b7db4dc3be5da5e3ce80ad9653bff682f796a79cd8384851e0ed757b468f2f52b6bde71cb00";
};
ItemSwapper = pkgs.fetchurl {
url = "https://cdn.modrinth.com/data/RPOSBQgq/versions/Fk9Fszur/itemswapper-fabric-0.10.0-mc1.21.11.jar";
sha512 = "6b30f301d6650bf72fc081fb546e2ce54004bacee1123547be179e43edcf68a56040e565ccf1df7d8d27978e10fc99c5778cf9bfb8e0999ad78fe80c159009f0";
};
ViewDistanceFix = pkgs.fetchurl {
url = "https://cdn.modrinth.com/data/nxrXbh5K/versions/13lPLnFp/viewdistancefix-fabric-1.21.11-1.0.2.jar";
sha512 = "00d48e17596689bcf745d3a01329fcf9ec657885446d55adb9a69b2d515ae4cc67b45943ff59ad3661d4c88643acb619dcc2045b4cd9a95220986697ded3fbd5";
};
ArmorPoser = pkgs.fetchurl {
url = "https://cdn.modrinth.com/data/PFwYNrHb/versions/pqoCZONH/ArmorPoser-fabric-1.21.11-13.2.0.jar";
sha512 = "7d83b60cde24e5ffd00f14a3adc333cdbdedc2cdebff9249de1ca33bc190479b1b5adb8d0c9903bf32bb5938608d8ab0121edbfca0f6eb77380b72729b7f59fc";
};
ClothConfig = pkgs.fetchurl {
url = "https://cdn.modrinth.com/data/9s6osm5g/versions/xuX40TN5/cloth-config-21.11.153-fabric.jar";
sha512 = "8f455489d4b71069e998568cf4e1450116f4360a4eb481cd89117f629c6883164886cf63ca08ac4fc929dd13d1112152755a6216d4a1498ee6406ef102093e51";
};
EnhancedGroups = pkgs.fetchurl {
url = "https://cdn.modrinth.com/data/1LE7mid6/versions/TZsIDYOE/enhancedgroups-fabric-1.21.11-1.7.1.jar";
sha512 = "fba198429a362c4cc81b1fae9125aff6fe64fce737517db5bdc57919692d6e0046b3f33d79e1a06c2e2fb8eaf5a8a995dde406ec47a48894f83322c969026bf4";
};
SkinRestorer = pkgs.fetchurl {
url = "https://cdn.modrinth.com/data/ghrZDhGW/versions/64YNvBfd/skinrestorer-2.7.0%2B1.21.11-fabric.jar";
sha512 = "5a32010cde723696841709b3250256e543b593fe5c1e8c088078f64854a08baffb2b5f1e8addc7e8a6a90607a5ecd6549f457fead247e5a6fb7989868c50f739";
};
SHA1Runtime = pkgs.fetchurl {
url = "https://cdn.modrinth.com/data/YoRtMPzM/versions/xOPNzoIc/SHA1Runtime-1.21.11-1.4.1.jar";
sha512 = "6da7488f9ea99bc0d318280063197d1fbacf60199bcb138d642576437033e8813c05ccc89e80eb7786b2237deef29a9ff6f0669e9dc2915811c32cf5081dd8bc";
};
Status = pkgs.fetchurl {
url = "https://cdn.modrinth.com/data/b93awgkg/versions/Dw8gVR1R/status-fabric-1.21.11-1.1.0.jar";
sha512 = "1fe57f557cf5c46bf2360c58d25f7b2b200222cebfec3534ec23734baa1bc23d1375bb04b7c024b6ef9491443de58afccfe56a727e6a222f8d5c4a8fc1e18232";
};
AudioPlayer = pkgs.fetchurl {
url = "https://cdn.modrinth.com/data/SRlzjEBS/versions/cxRGd2KF/audioplayer-fabric-2.1.0%2B1.21.11.jar";
sha512 = "81a1c432e51812e5ff7a2f3ea8030191d1f53ae4a3d42ab647358f52327e890c6d22b779c1ec02c5e92a3e438851d26aa6709dbb44af2d05fdd7c7d34e2f1dd4";
};
} }
); );
}; };
}; };
}; };
# For FastBackup force etc to have PATH
systemd.services."minecraft-server-fabric-modded".environment = {
PATH = lib.mkForce (
lib.makeBinPath [
pkgs.git
pkgs.git-lfs
pkgs.coreutils
pkgs.findutils
pkgs.gnugrep
pkgs.gnused
pkgs.systemd
]
+ ":/run/current-system/sw/bin"
);
};
# The nix-minecraft module creates the `minecraft` user/group automatically. # The nix-minecraft module creates the `minecraft` user/group automatically.
users.users.minecraftprg.extraGroups = ["minecraft"]; users.users.minecraftprg.extraGroups = ["minecraft"];
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
postgresql_jdbc postgresql_jdbc
git
git-lfs
]; ];
system.stateVersion = "25.11"; system.stateVersion = "25.11";