about summary refs log tree commit diff
path: root/users/sterni/modules/minecraft-fabric.nix
diff options
context:
space:
mode:
authorsterni <sternenseemann@systemli.org>2023-11-30T17·08+0100
committersterni <sternenseemann@systemli.org>2023-11-30T17·19+0000
commit62416bd3abf4655cea2cd6e60385483a8fe0a0da (patch)
treed2a6d6e39f4cb3e73166cd4dc358b8e28dd489f7 /users/sterni/modules/minecraft-fabric.nix
parent1470ff1be13a4053aeec5eab0b43b4a451a0c3c1 (diff)
fix(sterni/mod/minecraft-fabric): correctly set service enable opt r/7092
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
Diffstat (limited to 'users/sterni/modules/minecraft-fabric.nix')
-rw-r--r--users/sterni/modules/minecraft-fabric.nix2
1 files changed, 1 insertions, 1 deletions
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";