From 62416bd3abf4655cea2cd6e60385483a8fe0a0da Mon Sep 17 00:00:00 2001 From: sterni Date: Thu, 30 Nov 2023 18:08:26 +0100 Subject: 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 Tested-by: BuildkiteCI --- users/sterni/modules/minecraft-fabric.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/users/sterni/modules/minecraft-fabric.nix b/users/sterni/modules/minecraft-fabric.nix index daca54b6d113..e904233543e5 100644 --- a/users/sterni/modules/minecraft-fabric.nix +++ b/users/sterni/modules/minecraft-fabric.nix @@ -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"; -- cgit 1.4.1