turn poor guy into a minecraft server
Signed-off-by: unexplrd <unexplrd@linerds.us>
This commit is contained in:
@ -12,9 +12,10 @@
|
||||
./services.nix
|
||||
./sops.nix
|
||||
./users.nix
|
||||
./minecraft.nix
|
||||
];
|
||||
|
||||
desktop.niri.enable = true;
|
||||
# desktop.niri.enable = true;
|
||||
|
||||
locale.ukrainian.enable = true;
|
||||
|
||||
@ -25,7 +26,7 @@
|
||||
|
||||
opentabletdriver.enable = false;
|
||||
|
||||
qmk-vial.enable = true;
|
||||
# qmk-vial.enable = true;
|
||||
|
||||
security.basic.enable = true;
|
||||
|
||||
@ -40,11 +41,11 @@
|
||||
|
||||
time.timeZone = "Europe/Kyiv";
|
||||
|
||||
virtual.libvirt.enable = true;
|
||||
# virtual.libvirt.enable = true;
|
||||
|
||||
wireless = {
|
||||
wifi.enable = true;
|
||||
bluetooth.enable = true;
|
||||
bluetooth.enableBlueman = true;
|
||||
};
|
||||
# wireless = {
|
||||
# wifi.enable = true;
|
||||
# bluetooth.enable = true;
|
||||
# bluetooth.enableBlueman = true;
|
||||
# };
|
||||
}
|
||||
|
23
hosts/eldrid/minecraft.nix
Normal file
23
hosts/eldrid/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";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
@ -1,7 +1,8 @@
|
||||
{
|
||||
{lib, ...}: {
|
||||
imports = [
|
||||
../../../dunamis/users/user/common.nix
|
||||
../../../dunamis/users/user/programs.nix
|
||||
../../../dunamis/users/user/flatpak.nix
|
||||
];
|
||||
syncthing.enable = lib.mkDefault false;
|
||||
}
|
||||
|
Reference in New Issue
Block a user