From af04f7433a823735570a498fa0316077a713597c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tristan=20Dani=C3=ABl=20Maat?= Date: Mon, 27 Jul 2020 21:10:46 +0100 Subject: [PATCH] Specify ${pkgs.buxybox} for cp in the minecraft entrypoint The binary was previously not included in the image, causing the server properties to be misdefined. --- etc/nixos/services/minecraft.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/etc/nixos/services/minecraft.nix b/etc/nixos/services/minecraft.nix index 84aac7e..1d49d6a 100644 --- a/etc/nixos/services/minecraft.nix +++ b/etc/nixos/services/minecraft.nix @@ -6,7 +6,7 @@ let ${pkgs.busybox}/bin/mkdir -p /var/lib/ ${pkgs.gzip}/bin/gzip -dc ${./configs/minecraft.tar.gz} | ${pkgs.gnutar}/bin/tar -xf - -C /var/lib echo 'eula=true' > /var/lib/minecraft/eula.txt - cp -f ${properties} /var/lib/minecraft + ${pkgs.busybox}/bin/cp -f ${properties} /var/lib/minecraft $@ ''; ops = pkgs.writeText "ops.json" (builtins.toJSON [