Nix configurations for my homelab
0

Configure Feed

Select the types of activity you want to include in your feed.

Update cobblemon modpack

+42 -5
+42 -5
modules/services/minecraft/yembina.nix
··· 1 1 { pkgs, ... }: 2 2 { 3 - networking.firewall.allowedTCPPorts = [ 25566 ]; 3 + networking.firewall = { 4 + allowedTCPPorts = [ 25566 ]; 5 + allowedUDPPorts = [ 24455 ]; 6 + }; 4 7 5 8 services.minecraft-servers.servers.yembina = 6 9 let 7 10 modpack = pkgs.fetchModrinthModpack { 8 - url = "https://cloud.lilac.pink/public.php/dav/files/7tiZTEDs9ba3D8y/?accept=zip"; 9 - packHash = "sha256-m9CkQV5V8HKCNWCsZ0u669OlsgH8RjY5hQzOFa8PXUM="; 11 + url = "https://cloud.lilac.pink/public.php/dav/files/YnWGegEGDFXfxb9/?accept=zip"; 12 + packHash = "sha256-qREPZjCHWEW82yhCTTzTl98iTf8I3Unt8ADxOwU90EY="; 10 13 side = "server"; 11 14 }; 12 15 in ··· 30 33 # }; 31 34 serverProperties = { 32 35 allow-flight = true; 33 - difficulty = "hard"; 36 + difficulty = "normal"; 34 37 enforce-whitelist = true; 35 - motd = "yembina private server"; 38 + motd = "cobblemon private server"; 36 39 server-ip = "::"; 37 40 server-port = 25566; 38 41 spawn-protection = 0; ··· 45 48 }; 46 49 files = { 47 50 "config" = "${modpack}/config"; 51 + "config/cobblemon_smartphone.json" = pkgs.writeText "cobblemon_smartphone.json" '' 52 + { 53 + "cooldowns": { 54 + "healButton": 60, 55 + "pcButton": 5, 56 + "cloudButton": 5 57 + }, 58 + "features": { 59 + "enableHeal": false, 60 + "enablePC": true, 61 + "enableCloud": true 62 + } 63 + } 64 + ''; 48 65 "config/fightorflight.json5" = pkgs.writeText "fightorflight.json5" '' 49 66 { 50 67 "do_pokemon_attack": true, ··· 212 229 "force_enable_defend_owner": true, 213 230 "force_enable_defend_self": true 214 231 } 232 + ''; 233 + "config/voicechat/voicechat-server.properties" = pkgs.writeText "voicechat-server.properties" '' 234 + port=24455 235 + bind_address= 236 + max_voice_distance=48 237 + whisper_distance=24 238 + codec=VOIP 239 + mtu_size=1024 240 + tcp_rate_limit=16 241 + keep_alive=1000 242 + enable_groups=true 243 + voice_host= 244 + allow_recording=true 245 + spectator_interaction=false 246 + spectator_player_possession=false 247 + force_voice_chat=false 248 + login_timeout=10000 249 + broadcast_range=-1.0 250 + allow_pings=true 251 + use_natives=true 215 252 ''; 216 253 }; 217 254 };