nix-config/hosts/servers/alexandria.nix
2022-12-04 18:23:57 -03:00

42 lines
787 B
Nix

{ config, pkgs, lib, ...}:
{
imports = [
# Host-common imports
../common
# Server-common imports
./common
# Host-specific imports
./alexandria
];
users.users.user.extraGroups = [ "docker" ];
swapDevices = [ { device = "/swapfile"; size = 8192; } ];
networking = {
hostName = "alexandria";
firewall = {
allowedTCPPorts = [
80
443
9666
];
};
};
services.minecraft-server = {
enable = true;
eula = true;
declarative = true;
openFirewall = true;
package = pkgs.papermc;
serverProperties = {
motd = "Bem-vindo a Alexandria";
difficulty = "hard";
gamemode = "survival";
level-seed = "-7649949940957896961";
};
dataDir = "/data/minecraft";
};
}