mirror of
https://gitlab.com/ahoneybun/nix-configs.git
synced 2025-05-12 03:04:03 -06:00
Not working right now.
This commit is contained in:
parent
8919831f7d
commit
b397fd0cca
1 changed files with 29 additions and 0 deletions
29
web/mc-ahoneybun-net.nix
Normal file
29
web/mc-ahoneybun-net.nix
Normal file
|
@ -0,0 +1,29 @@
|
|||
{ config, pkgs, ... }:
|
||||
|
||||
{
|
||||
services.minecraft-server = {
|
||||
enable = true;
|
||||
eula = true;
|
||||
openFirewall = true;
|
||||
declarative = true;
|
||||
|
||||
# see here for more info: https://minecraft.gamepedia.com/Server.properties#server.properties
|
||||
serverProperties = {
|
||||
server-port = 25565;
|
||||
gamemode = "survival";
|
||||
motd = "NixOS Minecraft server";
|
||||
max-players = 5;
|
||||
enable-rcon = true;
|
||||
enable-query = true;
|
||||
# This password can be used to administer your minecraft server.
|
||||
# Exact details as to how will be explained later. If you want
|
||||
# you can replace this with another password.
|
||||
# rcon.password = "hunter2";
|
||||
# query.port = 25565;
|
||||
level-seed = "10292992";
|
||||
};
|
||||
};
|
||||
|
||||
# enable closed source packages such as the minecraft server
|
||||
nixpkgs.config.allowUnfree = true;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue