summary refs log tree commit diff stats
path: root/system/services/minecraft/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'system/services/minecraft/default.nix')
-rw-r--r--system/services/minecraft/default.nix9
1 files changed, 9 insertions, 0 deletions
diff --git a/system/services/minecraft/default.nix b/system/services/minecraft/default.nix
index e659af0..9bc98b9 100644
--- a/system/services/minecraft/default.nix
+++ b/system/services/minecraft/default.nix
@@ -1,4 +1,13 @@
 {lib, ...}: {
+  vhack.persist.directories = [
+    {
+      directory = "/var/lib/minecraft";
+      user = "minecraft";
+      group = "minecraft";
+      mode = "0700";
+    }
+  ];
+
   nixpkgs.config.allowUnfreePredicate = pkg:
     builtins.elem (lib.getName pkg) [
       "minecraft-server"