summary refs log tree commit diff stats
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--system/services/minecraft/default.nix6
1 files changed, 5 insertions, 1 deletions
diff --git a/system/services/minecraft/default.nix b/system/services/minecraft/default.nix
index 89b9ba9..64f2ee7 100644
--- a/system/services/minecraft/default.nix
+++ b/system/services/minecraft/default.nix
@@ -1,4 +1,8 @@
-{...}: {
+{lib, ...}: {
+  nixpkgs.config.allowUnfreePredicate = pkg:
+    builtins.elem (lib.getName pkg) [
+      "minecraft-server"
+    ];
   services.minecraft-server = {
     enable = true;
     declarative = true;