minecraftTest: edit syntax
This commit is contained in:
parent
30421d96f0
commit
ff305c8c4c
@ -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" ];
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user