stockholm/lass/2configs/minecraft.nix
2023-09-03 12:07:42 +02:00

14 lines
315 B
Nix

{ pkgs, ... }: let
unstable = import <nixpkgs-unstable> { config.allowUnfree = true; };
in {
services.minecraft-server = {
enable = true;
eula = true;
package = unstable.minecraft-server;
};
networking.firewall.allowedTCPPorts = [ 25565 ];
networking.firewall.allowedUDPPorts = [ 25565 ];
}