add config for adhoc minecraft server
Some checks failed
/ perform flake analysis (push) Successful in 39s
/ build hive configuration (push) Failing after 29s

This commit is contained in:
2026-01-16 22:16:06 +01:00
parent eaf515e178
commit ccf9e6b624
4 changed files with 25 additions and 44 deletions

View File

@@ -17,10 +17,7 @@
# sin inputs # sin inputs
nix-minecraft.url = "github:Infinidoge/nix-minecraft"; nix-minecraft.url = "github:Infinidoge/nix-minecraft";
testing-grounds.url = "gitlab:shobu13/testing-grounds"; testing-grounds.url = "gitlab:shobu13/testing-grounds";
reclamation.url = "git+https://git.shobu.fr/sin_serhao/reclamation";
shoblog-front.url = "gitlab:shobu13/shoblog"; shoblog-front.url = "gitlab:shobu13/shoblog";
# striped-front.url = "git+ssh://git@gitlab.com/striped1/striped-front";
# striped-back.url = "git+ssh://git@gitlab.com/striped1/striped-back";
copyparty.url = "github:9001/copyparty"; copyparty.url = "github:9001/copyparty";
@@ -67,22 +64,22 @@
{ {
nixosConfigurations = { nixosConfigurations = {
sin = nixpkgs.lib.nixosSystem { sin = nixpkgs.lib.nixosSystem {
system = "x86_64-linux"; system = "x86_64-linux";
modules = [ modules = [
disko.nixosModules.disko disko.nixosModules.disko
agenix.nixosModules.default agenix.nixosModules.default
./hosts/sin/configuration.nix ./hosts/sin/configuration.nix
./hosts/sin/hardware-configuration.nix ./hosts/sin/hardware-configuration.nix
] ]
++ [ ++ [
# modules # modules
./modules/gitea/sin ./modules/gitea/sin
]; ];
specialArgs = { specialArgs = {
inherit inputs; inherit inputs;
}; };
}; };
}; };
colmenaHive = colmena.lib.makeHive { colmenaHive = colmena.lib.makeHive {

View File

@@ -122,7 +122,7 @@
description = "bring back your world to life"; description = "bring back your world to life";
widget = { widget = {
type = "minecraft"; type = "minecraft";
url = "udp://minecraft.shobu.fr:43001"; url = "udp://minecraft.shobu.fr:25665";
}; };
}; };
} }

View File

@@ -36,7 +36,14 @@ in
# dhcpcd.extraConfig = "nohook resolv.conf"; # dhcpcd.extraConfig = "nohook resolv.conf";
firewall = { firewall = {
allowedTCPPorts = [ nodes.sin.config.services.gitea.settings.server.SSH_PORT ]; allowedTCPPorts = [
nodes.sin.config.services.gitea.settings.server.SSH_PORT
]
++ [
# minecraft ad hoc server ports
25665
25675
];
}; };
nat = { nat = {
enable = true; enable = true;

View File

@@ -9,7 +9,6 @@ let
url = "file:///${inputs.testing-grounds.modpack}/pack.toml"; url = "file:///${inputs.testing-grounds.modpack}/pack.toml";
packHash = "sha256-+taYj4uroLNxM4Nia3n+5P1Y/g6dzE6Iq13TsZgk4mU="; packHash = "sha256-+taYj4uroLNxM4Nia3n+5P1Y/g6dzE6Iq13TsZgk4mU=";
}; };
reclamation = inputs.reclamation.packages.${pkgs.stdenv.system};
in in
{ {
imports = [ inputs.nix-minecraft.nixosModules.minecraft-servers ]; imports = [ inputs.nix-minecraft.nixosModules.minecraft-servers ];
@@ -20,28 +19,6 @@ in
eula = true; eula = true;
openFirewall = true; openFirewall = true;
servers.reclamation = {
enable = false;
package = pkgs.fabricServers.fabric;
symlinks = {
"mods" = "${reclamation.modpack}/mods";
"FTBLang" = "${reclamation.modpack}/FTBLang";
"defaultconfigs" = "${reclamation.modpack}/defaultconfigs";
"ressourcepacks" = "${reclamation.modpack}/ressourcepacks";
"config" = "${reclamation.modpack}/config";
"kubejs" = "${reclamation.modpack}/kubejs";
"patchouli_books" = "${reclamation.modpack}/patchouli_books";
"server.dat" = "${reclamation.modpack}/server.dat";
};
serverProperties = {
server-port = 43001;
motd = "all hail the gorgon v3.14";
allow-flight = true;
};
};
servers.testing-grounds = { servers.testing-grounds = {
enable = true; enable = true;