aboutsummaryrefslogtreecommitdiff
path: root/nix/minecraft.nix
diff options
context:
space:
mode:
authorAlexander Kassouni <alex@kassouni.net>2026-10-23 14:50:17 -0700
committerAlexander Kassouni <alex@kassouni.net>2026-10-23 14:50:17 -0700
commit15ec12896112df04665ff2b4b2a945c9f62d8188 (patch)
tree525963644d867b0d5cd1b90ef145db490e0da2a8 /nix/minecraft.nix
parentdb16d1d40b22c2502659fdb92014f41129896b61 (diff)
fmt
Diffstat (limited to 'nix/minecraft.nix')
-rw-r--r--nix/minecraft.nix11
1 files changed, 9 insertions, 2 deletions
diff --git a/nix/minecraft.nix b/nix/minecraft.nix
index 6b2f70e..8117f6c 100644
--- a/nix/minecraft.nix
+++ b/nix/minecraft.nix
@@ -1,11 +1,18 @@
-{inputs, lib, pkgs, ...}: let
+{
+ inputs,
+ lib,
+ pkgs,
+ ...
+}:
+let
allowMinecraft = pkg: builtins.elem (lib.getName pkg) [ "minecraft-server" ];
unstable = import inputs.nixpkgs-unstable {
inherit (pkgs.stdenv.hostPlatform) system;
config.allowUnfreePredicate = allowMinecraft;
};
-in {
+in
+{
nixpkgs.config.allowUnfreePredicate = allowMinecraft;
environment.systemPackages = [ pkgs.mcrcon ];