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,25 +19,23 @@ let
# Create a wrapper module that imports the actual minecraft service
minecraftService =
{ config, ... }:
let
# Import the minecraft service configuration
serviceConfig = import ../services/minecraft.nix {
inherit lib config;
pkgs = testPkgs;
service_configs = {
minecraft = {
server_name = "main";
parent_dir = "/var/lib/minecraft";
};
https = {
domain = "test.local";
};
};
username = "testuser";
};
in
{
imports = [ serviceConfig ];
imports = [
(import ../services/minecraft.nix {
inherit lib config;
pkgs = testPkgs;
service_configs = {
minecraft = {
server_name = "main";
parent_dir = "/var/lib/minecraft";
};
https = {
domain = "test.local";
};
};
username = "testuser";
})
];
# Override nixpkgs config to prevent conflicts in test environment
nixpkgs.config = lib.mkForce {
allowUnfreePredicate = pkg: builtins.elem (lib.getName pkg) [ "minecraft-server" ];