diff --git a/hosts/cuallaidh.nix b/hosts/cuallaidh.nix index 6a0544b..e3b7bf3 100644 --- a/hosts/cuallaidh.nix +++ b/hosts/cuallaidh.nix @@ -13,6 +13,7 @@ #../profiles/hydra.nix ../profiles/iohk.nix ../profiles/matrix.nix + ../profiles/minecraftServer.nix ../profiles/nextcloud.nix ../profiles/nixpkgs-dev.nix ../profiles/taskserver.nix diff --git a/hosts/dionach.nix b/hosts/dionach.nix index 8e8f51f..4cf9790 100644 --- a/hosts/dionach.nix +++ b/hosts/dionach.nix @@ -33,6 +33,7 @@ allowUnfree = true; permittedInsecurePackages = [ "openssl-1.0.2u" + "minecraft" ]; }; @@ -92,6 +93,7 @@ libgphoto2 libreoffice-fresh # Libreoffice - fresh version lxmenu-data + minecraft mkpasswd mp3info # MP3 tag editor / query tool mpd diff --git a/profiles/minecraftServer.nix b/profiles/minecraftServer.nix new file mode 100644 index 0000000..95ff761 --- /dev/null +++ b/profiles/minecraftServer.nix @@ -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"; + }; + }; + +}