Browse Source

Vanilla minecraft server on crimespoon

main
Leonora Tindall 2 years ago
parent
commit
cc07211472
Signed by: nora GPG Key ID: 7A8B52EC67E09AAF
  1. 22
      common/fragments/minecraft-server.nix
  2. 1
      hosts/crimespoon/configuration.nix

22
common/fragments/minecraft-server.nix

@ -0,0 +1,22 @@
{ pkgs, ... }:
{
nixpkgs.config.allowUnfree = true;
services.minecraft-server = {
enable = true;
eula = true;
declarative = true;
serverProperties = {
server-port = 25565;
gamemode = "survival";
motd = "NixOS Minecraft server on CRIMESPOON";
max-players = 16;
enable-rcon = true;
"rcon.password" = "password";
level-seed = "-573947210";
};
};
environment.systemPackages = with pkgs; [ mcrcon ];
networking.firewall.allowedTCPPorts = [ 25565 ];
networking.firewall.allowedUDPPorts = [ 25565 ];
}

1
hosts/crimespoon/configuration.nix

@ -15,6 +15,7 @@
../../common/fragments/qbittorrent.nix
../../common/fragments/prometheus_exporters.nix
../../common/fragments/syncthing.nix
../../common/fragments/minecraft-server.nix
];
# Use the systemd-boot EFI boot loader.

Loading…
Cancel
Save