fix(sterni/mod/minecraft-fabric): correctly set service enable opt

This actually allows disabling a service for the first time, since the
configuration structure for the service is created irrespective of the
enable option.

Change-Id: I08e5e67565d6fe210fb0f65600b8750433ce4712
Reviewed-on: https://cl.tvl.fyi/c/depot/+/10175
Reviewed-by: sterni <sternenseemann@systemli.org>
Tested-by: BuildkiteCI
This commit is contained in:
sterni 2023-11-30 18:08:26 +01:00
parent 1470ff1be1
commit 62416bd3ab

View file

@ -468,11 +468,11 @@ in
(name: instanceCfg:
{
name = "minecraft-fabric-${name}";
inherit (instanceCfg) enable;
value = {
description = "Minecraft server ${name} with the fabric mod loader";
wantedBy = [ "multi-user.target" ];
after = [ "network.target" ];
inherit (instanceCfg) enable;
serviceConfig = {
Type = "simple";