summary refs log tree commit diff stats
path: root/system/services/minecraft/default.nix
diff options
context:
space:
mode:
authorsils <sils@sils.li>2023-06-19 16:24:53 +0200
committersils <sils@sils.li>2023-06-19 16:25:58 +0200
commitc54377606c68dc0f711f5e5baded0180fc87cdf9 (patch)
treed7b4d5336ce688d6eb8604c27ba9b0e3a3d501ac /system/services/minecraft/default.nix
parentFix(system/services): Ignore unnecessary inputs (diff)
downloadnixos-server-c54377606c68dc0f711f5e5baded0180fc87cdf9.tar.gz
nixos-server-c54377606c68dc0f711f5e5baded0180fc87cdf9.zip
Fix(system/services): Allow minecraft-server, which is sadly unfree
Diffstat (limited to 'system/services/minecraft/default.nix')
-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;