mirror of
https://gitlab.com/upRootNutrition/dotfiles.git
synced 2025-12-07 05:27:13 -06:00
feat: added another minecraft world
This commit is contained in:
parent
5b00235743
commit
710bc42aef
6 changed files with 44 additions and 34 deletions
|
|
@ -5,7 +5,7 @@
|
|||
let
|
||||
inherit (flake.config.people) user0;
|
||||
inherit (flake.config.services) instances;
|
||||
serviceCfg = instances.minecraft1;
|
||||
serviceCfg = instances.minecraft0;
|
||||
hostCfg = instances.web;
|
||||
world = "world1";
|
||||
in
|
||||
|
|
@ -25,7 +25,7 @@ in
|
|||
openFirewall = true;
|
||||
declarative = true;
|
||||
serverProperties = {
|
||||
"rcon.password" = "/etc/${serviceCfg.name}-secrets/${world}";
|
||||
"rcon.password" = "/run/secrets/${world}";
|
||||
allow-flight = false;
|
||||
allow-nether = true;
|
||||
difficulty = 2;
|
||||
|
|
@ -37,9 +37,9 @@ in
|
|||
generate-structures = true;
|
||||
hardcore = false;
|
||||
hide-online-players = false;
|
||||
level-name = "CuddleCubes";
|
||||
level-name = "Brix on Nix";
|
||||
level-seed = "-2332803749585407299";
|
||||
max-players = 2;
|
||||
max-players = 10;
|
||||
max-world-size = 64000000;
|
||||
motd = "A cool Minecraft server powered by NixOS";
|
||||
online-mode = true;
|
||||
|
|
@ -177,4 +177,11 @@ in
|
|||
};
|
||||
|
||||
networking.firewall.allowedTCPPorts = [ serviceCfg.ports.port0 ];
|
||||
|
||||
systemd = {
|
||||
tmpfiles.rules = [
|
||||
"d ${serviceCfg.mntPaths.path0} 0751 microvm wheel - -"
|
||||
];
|
||||
};
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue