From 92131a0ec0aff44358473368e16defe36802b43b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tristan=20Dani=C3=ABl=20Maat?= Date: Mon, 27 Jul 2020 21:23:12 +0100 Subject: [PATCH] Correctly name the server.properties file in the minecraft container Previously this would add a checksum to the name because it would use the name provided by nixos, which of course would make minecraft not read the server properties file. --- 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 1d49d6a..b2ddf87 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 - ${pkgs.busybox}/bin/cp -f ${properties} /var/lib/minecraft + ${pkgs.busybox}/bin/cp -f ${properties} /var/lib/minecraft/server.properties $@ ''; ops = pkgs.writeText "ops.json" (builtins.toJSON [