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:
parent
1470ff1be1
commit
62416bd3ab
1 changed files with 1 additions and 1 deletions
|
@ -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";
|
||||
|
|
Loading…
Reference in a new issue