anchor.diff:  {
     options = {
       services.minecraft-server = {
  +
         enable = mkOption {
           type = types.bool;
           default = false;
  
positive.code:   config = mkIf cfg.enable {
      users.extraUsers.minecraft = {
        description     = "Minecraft Server Service user";
        home            = "/var/lib/minecraft";
        createHome      = true;
        uid             = config.ids.uids.minecraft;
      };
  
negative.code:       serviceConfig.Restart = "always";
        serviceConfig.User    = "minecraft";
        script = ''
          cd ${cfg.dataDir}
          exec ${pkgs.minecraft-server}/bin/minecraft-server ${cfg.jvmOpts}
        '';
      };
  
      networking.firewall = mkIf cfg.openFirewall {
        allowedUDPPorts = [ 25565 ];
        allowedTCPPorts = [ 25565 ];
      };
    };
  }
  