From 4cfb06fabb1079593ab6866069ac0decf73929bb Mon Sep 17 00:00:00 2001 From: Sakooooo <78461130+Sakooooo@users.noreply.github.com> Date: Tue, 7 Jan 2025 19:21:41 +0400 Subject: [PATCH] actual idiot award --- modules/server/game/minecraft/default.nix | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/modules/server/game/minecraft/default.nix b/modules/server/game/minecraft/default.nix index b618e06e..5bcaa91b 100644 --- a/modules/server/game/minecraft/default.nix +++ b/modules/server/game/minecraft/default.nix @@ -3,15 +3,15 @@ with lib; let cfg = config.void.server.game.minecraft; in { imports = [ inputs.nix-minecraft.nixosModules.minecraft-servers ]; + nixpkgs = { + overlays = [ inputs.nix-minecraft.overlay ]; + config.allowUnfreePredicate = pkg: + builtins.elem (lib.getName pkgs) [ "minecraft-server" ]; + }; + options.void.server.game.minecraft = { enable = mkEnableOption false; }; config = mkIf cfg.enable { - nixpkgs = { - overlays = [ inputs.nix-minecraft.overlay ]; - config.allowUnfreePredicate = pkg: - builtins.elem (lib.getName pkgs) [ "minecraft-server" ]; - }; - # services = { services.minecraft-servers.servers.wires = let modpack = pkgs.fetchPackwizModpack { url = ./sakopack; };