move server to another host
Signed-off-by: unexplrd <unexplrd@linerds.us>
This commit is contained in:
@ -11,6 +11,7 @@
|
|||||||
./services.nix
|
./services.nix
|
||||||
./sops.nix
|
./sops.nix
|
||||||
./users.nix
|
./users.nix
|
||||||
|
./minecraft.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
desktop.niri.enable = true;
|
desktop.niri.enable = true;
|
||||||
|
23
hosts/dunamis/minecraft.nix
Normal file
23
hosts/dunamis/minecraft.nix
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
{
|
||||||
|
networking.firewall.allowedTCPPorts = [25565];
|
||||||
|
networking.firewall.allowedUDPPorts = [25565];
|
||||||
|
virtualisation.oci-containers = {
|
||||||
|
backend = "podman";
|
||||||
|
containers.minecraft = {
|
||||||
|
image = "docker.io/itzg/minecraft-server:java17-alpine";
|
||||||
|
volumes = ["/storage/minecraft:/data"];
|
||||||
|
ports = ["25565:25565"];
|
||||||
|
environment = {
|
||||||
|
DIFFICULTY = "easy";
|
||||||
|
EULA = "true";
|
||||||
|
GUI = "false";
|
||||||
|
INIT_MEMORY = "6G";
|
||||||
|
MAX_MEMORY = "6G";
|
||||||
|
ONLINE_MODE = "false";
|
||||||
|
TYPE = "forge";
|
||||||
|
VERSION = "1.20.1";
|
||||||
|
VIEW_DISTANCE = "8";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
@ -12,7 +12,6 @@
|
|||||||
./services.nix
|
./services.nix
|
||||||
./sops.nix
|
./sops.nix
|
||||||
./users.nix
|
./users.nix
|
||||||
./minecraft.nix
|
|
||||||
];
|
];
|
||||||
|
|
||||||
# desktop.niri.enable = true;
|
# desktop.niri.enable = true;
|
||||||
|
Reference in New Issue
Block a user