feat: add luanti server
This commit is contained in:
parent
ddf8154933
commit
6922232ec5
6 changed files with 55 additions and 6 deletions
|
@ -1,5 +1,20 @@
|
|||
{...}: {
|
||||
services.minetest = {
|
||||
{pkgs, ...}: let
|
||||
port = 10523;
|
||||
in {
|
||||
services.minetest-server = {
|
||||
enable = true;
|
||||
|
||||
gameId = "asuna";
|
||||
port = port;
|
||||
};
|
||||
|
||||
# open port since luanti does not do it by itself
|
||||
networking.firewall = {
|
||||
allowedUDPPorts = [port];
|
||||
};
|
||||
|
||||
# install luanti seperatly so it is available through the command line
|
||||
environment.systemPackages = with pkgs; [
|
||||
luanti
|
||||
];
|
||||
}
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
services.openssh = {
|
||||
enable = true;
|
||||
|
||||
ports = lib.mkDefault [38742];
|
||||
ports = lib.mkDefault [10522];
|
||||
|
||||
settings = {
|
||||
PasswordAuthentication = false;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue