Refactor Minecraft modpack configuration and update symlinks

This commit is contained in:
Root User 2026-04-09 00:46:46 +03:00
parent 02836a213a
commit c605464950
Signed by: root
GPG key ID: 087F0A95E5766D72
2 changed files with 13 additions and 31 deletions

View file

@ -75,7 +75,7 @@
modules = [ modules = [
# Apply the overlay first so pkgs in later modules (like our local # Apply the overlay first so pkgs in later modules (like our local
# `minecraft.nix`) see the extra helpers provided by the overlay # `minecraft.nix`) see the extra helpers provided by the overlay
{ nixpkgs.overlays = [ inputs.nix-minecraft.overlay ]; } {nixpkgs.overlays = [inputs.nix-minecraft.overlay];}
nix-minecraft.nixosModules.minecraft-servers nix-minecraft.nixosModules.minecraft-servers

View file

@ -10,7 +10,7 @@
# Try to use the nix-minecraft helper if the overlay is present; otherwise # Try to use the nix-minecraft helper if the overlay is present; otherwise
# fall back to a local path. If you use the fallback, ensure the path is an # fall back to a local path. If you use the fallback, ensure the path is an
# unpacked modpack directory with `mods` and `config` subdirectories. # unpacked modpack directory with `mods` and `config` subdirectories.
modpack = /srv/minecraft/modpacks/AllTheMods10-prg.mrpack; modpack = /srv/minecraft/modpacks/atm10;
in { in {
options.local = { options.local = {
hostname = lib.mkOption { hostname = lib.mkOption {
@ -70,7 +70,7 @@ in {
eula = true; eula = true;
openFirewall = true; openFirewall = true;
servers.all-the-mods-ten-tss = { servers.all-the-mods-tss = {
enable = true; enable = true;
autoStart = true; autoStart = true;
restart = "always"; restart = "always";
@ -110,34 +110,16 @@ in {
}; };
}; };
#symlinks = { symlinks = {
# "mods" = "${modpack}/overrides/mods"; "mods" = "${modpack}/mods";
# "moddata" = "${modpack}/overrides/moddata"; "datapacks" = "${modpack}/datapacks";
# "resourcepacks" = "${modpack}/overrides/resourcepacks"; };
# "shaderpacks" = "${modpack}/overrides/shaderpacks"; files = {
# "dynamic-resource-pack-cache" = "${modpack}/overrides/dynamic-resource-pack-cache"; "config" = "${modpack}/config";
# "dynamic-data-pack-cache" = "${modpack}/overrides/dynamic-data-pack-cache"; "defaultconfigs" = "${modpack}/defaultconfigs";
#}; "kubejs" = "${modpack}/kubejs";
#files = { "local" = "${modpack}/local";
# "backup" = "${modpack}/overrides/backup"; };
# "blueprints" = "${modpack}/overrides/blueprints";
# "command_history.txt" = "${modpack}/overrides/command_history.txt";
# "config" = "${modpack}/overrides/config";
# "datapacks" = "${modpack}/overrides/datapacks";
# "downloads" = "${modpack}/overrides/downloads";
# "ESM" = "${modpack}/overrides/ESM";
# "eula.txt" = "${modpack}/overrides/eula.txt";
# "fancymenu_data" = "${modpack}/overrides/fancymenu_data";
# "journeymap" = "${modpack}/overrides/journeymap";
# "kubejs" = "${modpack}/overrides/kubejs";
# "manifest.json" = "${modpack}/overrides/manifest.json";
# "minecraftinstance.json" = "${modpack}/overrides/minecraftinstance.json";
# "observable_announce" = "${modpack}/overrides/observable_announce";
# "options.txt" = "${modpack}/overrides/options.txt";
# "patchouli_books" = "${modpack}/overrides/patchouli_books";
# "patchouli_data.json" = "${modpack}/overrides/patchouli_data.json";
# "schematics" = "${modpack}/overrides/schematics";
#};
}; };
servers.fabric-modded = { servers.fabric-modded = {