minecraftTest: edit syntax

This commit is contained in:
Simon Gardling 2025-08-12 00:25:07 -07:00
parent 30421d96f0
commit ff305c8c4c
Signed by: titaniumtown
GPG Key ID: 9AB28AC10ECE533D

View File

@ -19,9 +19,9 @@ let
# Create a wrapper module that imports the actual minecraft service # Create a wrapper module that imports the actual minecraft service
minecraftService = minecraftService =
{ config, ... }: { config, ... }:
let {
# Import the minecraft service configuration imports = [
serviceConfig = import ../services/minecraft.nix { (import ../services/minecraft.nix {
inherit lib config; inherit lib config;
pkgs = testPkgs; pkgs = testPkgs;
service_configs = { service_configs = {
@ -34,10 +34,8 @@ let
}; };
}; };
username = "testuser"; username = "testuser";
}; })
in ];
{
imports = [ serviceConfig ];
# Override nixpkgs config to prevent conflicts in test environment # Override nixpkgs config to prevent conflicts in test environment
nixpkgs.config = lib.mkForce { nixpkgs.config = lib.mkForce {
allowUnfreePredicate = pkg: builtins.elem (lib.getName pkg) [ "minecraft-server" ]; allowUnfreePredicate = pkg: builtins.elem (lib.getName pkg) [ "minecraft-server" ];