minecraftServer: added minecraft-server

This commit is contained in:
Craige McWhirter 2021-05-03 22:01:09 +10:00
parent a2a428d17c
commit c955ffdd0f
Signed by: sercanto
GPG key ID: 7DBA9F5689EFB6AA
3 changed files with 29 additions and 0 deletions

View file

@ -13,6 +13,7 @@
#../profiles/hydra.nix #../profiles/hydra.nix
../profiles/iohk.nix ../profiles/iohk.nix
../profiles/matrix.nix ../profiles/matrix.nix
../profiles/minecraftServer.nix
../profiles/nextcloud.nix ../profiles/nextcloud.nix
../profiles/nixpkgs-dev.nix ../profiles/nixpkgs-dev.nix
../profiles/taskserver.nix ../profiles/taskserver.nix

View file

@ -33,6 +33,7 @@
allowUnfree = true; allowUnfree = true;
permittedInsecurePackages = [ permittedInsecurePackages = [
"openssl-1.0.2u" "openssl-1.0.2u"
"minecraft"
]; ];
}; };
@ -92,6 +93,7 @@
libgphoto2 libgphoto2
libreoffice-fresh # Libreoffice - fresh version libreoffice-fresh # Libreoffice - fresh version
lxmenu-data lxmenu-data
minecraft
mkpasswd mkpasswd
mp3info # MP3 tag editor / query tool mp3info # MP3 tag editor / query tool
mpd mpd

View file

@ -0,0 +1,26 @@
# Minecraft server configuration for NixOS / NixOps
{ config, pkgs, ... }:
{
nixpkgs = {
config = {
allowUnfree = true;
};
};
services.minecraft-server = {
enable = true; # Enable the Minecraft server.
eula = true; # Answer Miecraft's EULA
openFirewall = true;
serverProperties = {
motd = "mcwhirter.io";
white-list = true;
};
whitelist = {
TongMaster = "765bbc7c-6a06-4f10-8bde-f15a8a779007";
};
};
}