stockholm/lass/2configs/minecraft.nix

14 lines
315 B
Nix
Raw Normal View History

2020-10-29 07:50:18 +00:00
{ pkgs, ... }: let
2018-01-15 23:02:38 +00:00
2020-10-29 07:50:18 +00:00
unstable = import <nixpkgs-unstable> { config.allowUnfree = true; };
in {
services.minecraft-server = {
enable = true;
eula = true;
package = unstable.minecraft-server;
2018-01-15 23:02:38 +00:00
};
2023-09-03 10:07:42 +00:00
networking.firewall.allowedTCPPorts = [ 25565 ];
networking.firewall.allowedUDPPorts = [ 25565 ];
2018-01-15 23:02:38 +00:00
}