minecraftServer: added minecraft-server
This commit is contained in:
parent
a2a428d17c
commit
c955ffdd0f
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
26
profiles/minecraftServer.nix
Normal file
26
profiles/minecraftServer.nix
Normal 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";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
}
|
Loading…
Reference in a new issue