an attempt at doing minecraft again
This commit is contained in:
parent
0a26f41943
commit
08e8e4d01c
1 changed files with 11 additions and 9 deletions
|
@ -3,20 +3,25 @@
|
||||||
...
|
...
|
||||||
}: {
|
}: {
|
||||||
services.minecraft-server = {
|
services.minecraft-server = {
|
||||||
enable = false;
|
enable = true;
|
||||||
package = pkgs.purpur;
|
package = pkgs.purpur.overrideAttrs {
|
||||||
|
src = pkgs.fetchurl {
|
||||||
|
url = "https://api.purpurmc.org/v2/purpur/1.20.6/2233/download";
|
||||||
|
hash = "sha256-fVQQqXg2Ckb6p2ooix6rNTE12NsW5AMpoVRALsGxLZE=";
|
||||||
|
};
|
||||||
|
};
|
||||||
eula = true;
|
eula = true;
|
||||||
declarative = true;
|
declarative = true;
|
||||||
jvmOpts = "";
|
jvmOpts = "";
|
||||||
serverProperties = {
|
serverProperties = {
|
||||||
server-ip = "192.168.15.17";
|
server-ip = "127.0.0.1";
|
||||||
server-port = 2137;
|
server-port = 2137;
|
||||||
difficulty = 3;
|
difficulty = 3;
|
||||||
gamemode = 0;
|
gamemode = 0;
|
||||||
enable-command-block = false;
|
enable-command-block = true;
|
||||||
hide-online-players = true;
|
hide-online-players = true;
|
||||||
level-name = "swiat";
|
level-name = "swiat";
|
||||||
max-players = 2;
|
max-players = 4;
|
||||||
online-mode = true;
|
online-mode = true;
|
||||||
snooper-enabled = false;
|
snooper-enabled = false;
|
||||||
spawn-protection = 0;
|
spawn-protection = 0;
|
||||||
|
@ -26,7 +31,7 @@
|
||||||
};
|
};
|
||||||
whitelist = {
|
whitelist = {
|
||||||
jacekpoz = "8cc45dd9-0145-4068-be30-038a3844ebd0";
|
jacekpoz = "8cc45dd9-0145-4068-be30-038a3844ebd0";
|
||||||
krizej = "c456cd5a-489d-4c6e-9613-aa9735fe2843";
|
emo_mruczek = "e62cfed1-4758-488e-ac91-b623a87e0ac9";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -36,7 +41,4 @@
|
||||||
reverse_proxy * localhost:2137
|
reverse_proxy * localhost:2137
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
networking.firewall.allowedTCPPorts = [ 2137 ];
|
|
||||||
networking.firewall.allowedUDPPorts = [ 2137 ];
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue